Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


StateAttribute

Attribute used to specify metadata for a State class, such as its icon.
Read time 4 minutesLast updated 10 days ago

Definition

[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.

Inheritance

Inherited Members