RoleProviderAttribute
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.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Constructor
- Namespace: UnityEditor.MPE
- Assembly: UnityEditor.CoreModule
RoleProviderAttribute(string, 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.
public RoleProviderAttribute(string name, ProcessEvent eventType)
Parameters
The name of the RoleProvider. For example, StandaloneProfiler.
The event that the process triggered.
RoleProviderAttribute(ProcessLevel, 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.
public RoleProviderAttribute(ProcessLevel level, ProcessEvent eventType)
Parameters
The process level (either master or slave) that this handler should be registered on.
The event that the process triggered.