StateAttribute
Initializes a new instance of the StateAttribute class.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Constructor
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
StateAttribute(string)
Initializes a new instance of the StateAttribute class.
public StateAttribute(string categoryPath)
Parameters
The category path of the state in the graph item library.
StateAttribute(string, string)
Initializes a new instance of the StateAttribute class.
public StateAttribute(string categoryPath, string iconPath)
Parameters
StateAttribute(string, string, string)
Initializes a new instance of the StateAttribute class.
public StateAttribute(string categoryPath, string iconPath, string title)
Parameters
StateAttribute(string, string, string, string)
Initializes a new instance of the StateAttribute class.
public StateAttribute(string categoryPath, string iconPath, string title, string stylesheet)
Parameters
The category path of the state in the graph item library.
The file path to the state's icon.
The title of the state in the graph item library. It is also used as the title of this state when it is instantiated in a graph.
Path to a stylesheet (.uss) used to customize the state's VisualElement appearance.