Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RoleProviderAttribute

An attribute used to decorate function that defines how a slave process can interact with a main instance of Unity.
Read time 4 minutesLast updated 9 days ago

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