Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


StateAttribute

Initializes a new instance of the StateAttribute class.
Read time 1 minuteLast updated 7 days ago

Definition

StateAttribute(string)

Initializes a new instance of the StateAttribute class.
public StateAttribute(string categoryPath)

Parameters

categoryPath

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

categoryPath

The category path of the state in the graph item library.

iconPath

The file path to the state's icon.

StateAttribute(string, string, string)

Initializes a new instance of the StateAttribute class.
public StateAttribute(string categoryPath, string iconPath, string title)

Parameters

categoryPath

The category path of the state in the graph item library.

iconPath

The file path to the state's icon.

title

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.

StateAttribute(string, string, string, string)

Initializes a new instance of the StateAttribute class.
public StateAttribute(string categoryPath, string iconPath, string title, string stylesheet)

Parameters

categoryPath

The category path of the state in the graph item library.

iconPath

The file path to the state's icon.

title

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.

stylesheet

Path to a stylesheet (.uss) used to customize the state's VisualElement appearance.