Version: 2023.2

RoleProviderAttributeConstructor

切换到手册
public RoleProviderAttribute (string name, MPE.ProcessEvent eventType);
public RoleProviderAttribute (MPE.ProcessLevel level, MPE.ProcessEvent eventType);

参数

name The name of the RoleProvider. For example, StandaloneProfiler.
eventType The event that the process triggered.
level The process level (either master or slave) that this handler should be registered on.

描述

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.