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.
阅读时间1 分钟最后更新于 2 小时前
Definition
- Type: Constructor
- Namespace: UnityEditor.MPE
- Assembly: UnityEditor
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.