文档

Unity Engine

Unity Engine

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

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

name

The name of the RoleProvider. For example, StandaloneProfiler.

eventType

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.

eventType

The event that the process triggered.