Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

StateMachineAttribute

class in Unity.GraphToolkit.Editor

/

Inherits from:Unity.GraphToolkit.Editor.GraphAttribute

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Attribute used to declare a state machine type by associating it with a file extension and optional configuration options.

Use this attribute to associate a custom StateMachine class with a unique file extension and StateMachineOptions. The extension parameter defines the file extension for the state machine assets. This extension must be unique across the project because Unity uses it to select the correct importer. You can also configure additional options using StateMachineOptions. This attribute is required for any class that inherits from StateMachine and serves as the entry point for enabling editor support for the state machine tool. This is the StateMachine counterpart of GraphAttribute.

Properties

Property Description
Options Gets the state machine configuration options.

Constructors

Constructor Description
StateMachineAttribute Initializes a new instance of the StateMachineAttribute class with a file extension and optional state machine options.

Inherited Members

Properties

PropertyDescription
Extension Gets the file extension associated with the Graph.
Options Gets the graph configuration options.