文档

Unity Engine

Unity Engine

RoleProviderAttribute

An attribute used to decorate function that defines how a slave process can interact with a main instance of Unity.
阅读时间4 分钟最后更新于 2 小时前

Definition

[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]public sealed class RoleProviderAttribute : Attribute

Fields

Value

Description

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.

Constructors

Constructor

Description

RoleProviderAttribute(System.String,UnityEditor.MPE.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.
RoleProviderAttribute(UnityEditor.MPE.ProcessLevel,UnityEditor.MPE.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.

Inheritance

Inherited Members