StateAttribute
Attribute used to specify metadata for a State class, such as its icon.
Read time 4 minutesLast updated 10 days ago
Definition
- Type: Class
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
- Inherits from: NodeAttribute
[AttributeUsage(AttributeTargets.Class)]public sealed class StateAttribute : NodeAttribute
Remarks
Apply this attribute to a class derived from State to define metadata like NodeAttribute.IconPath.
This is the State counterpart of NodeAttribute.
Constructors
Constructor | Description |
|---|---|
| StateAttribute(System.String) | Initializes a new instance of the StateAttribute class. |
| StateAttribute(System.String,System.String) | Initializes a new instance of the StateAttribute class. |
| StateAttribute(System.String,System.String,System.String) | Initializes a new instance of the StateAttribute class. |
| StateAttribute(System.String,System.String,System.String,System.String) | Initializes a new instance of the StateAttribute class. |