Version: 2022.3

RoleProviderAttribute

class in UnityEditor.MPE

切换到手册

描述

An attribute used to decorate function that defines how a slave process can interact with a main instance of Unity.

变量

eventTypeThe event that the process triggered.
levelThe process level (either master or slave) that the handler is registered on.
nameThe name of the RoleProvider. For example, StandaloneProfiler.

构造函数

RoleProviderAttributeConstructor 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.