TransitionAttribute
Attribute used to specify metadata for a SelfTransition class.
Read time 3 minutesLast updated 10 days ago
Definition
- Type: Class
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
- Inherits from: Attribute
[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 |
|---|---|
| CategoryPath | The category path used to place the transition creation action in a submenu of the state context menu. |
| IconPath | The file path to the transition's icon. |
| Title | The title of this transition type. |