Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TransitionAttribute

Attribute used to specify metadata for a SelfTransition class.
Read time 3 minutesLast updated 10 days ago

Definition

[AttributeUsage(AttributeTargets.Class)]public sealed class TransitionAttribute : Attribute

Remarks

Apply this attribute to a class derived from SelfTransition to define its default TransitionAttribute.CategoryPath, TransitionAttribute.IconPath and TransitionAttribute.Title.

Constructors

Constructor

Description

TransitionAttribute(System.String)Initializes a new instance of the TransitionAttribute class.
TransitionAttribute(System.String,System.String)Initializes a new instance of the TransitionAttribute class.
TransitionAttribute(System.String,System.String,System.String)Initializes a new instance of the TransitionAttribute class.

Properties

Property

Description

CategoryPathThe category path used to place the transition creation action in a submenu of the state context menu.
IconPathThe file path to the transition's icon.
TitleThe title of this transition type.

Inheritance

Inherited Members