RoleProviderAttribute
An attribute used to decorate function that defines how a slave process can interact with a main instance of Unity.
Read time 4 minutesLast updated 9 days ago
Definition
- Type: Class
- Namespace: UnityEditor.MPE
- Assembly: UnityEditor.CoreModule
- Inherits from: Attribute
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]public sealed class RoleProviderAttribute : Attribute
Fields
Value | Description |
|---|---|
| eventType | The event that the process triggered. |
| level | The process level (either master or slave) that the handler is registered on. |
| name | The name of the RoleProvider. For example, StandaloneProfiler. |
Constructors
Constructor | Description |
|---|---|
| RoleProviderAttribute(System.String,UnityEditor.MPE.ProcessEvent) | Constructor for a RoleProviderAttribute. Allows you to register a handler that is triggered when a specific ProcessEvent is triggered in a UnityEditor process of a specific ProcessLevel. |
| RoleProviderAttribute(UnityEditor.MPE.ProcessLevel,UnityEditor.MPE.ProcessEvent) | Constructor for a RoleProviderAttribute. Allows you to register a handler that is triggered when a specific ProcessEvent is triggered in a UnityEditor process of a specific ProcessLevel. |