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

StateMachineOptions

enumeration

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

Flags that define configuration options that affect the behavior and capabilities of a StateMachine class.

Use the StateMachineOptions enum in conjunction with the StateMachineAttribute to customize how a state machine behaves, including automatic state discovery. The default value is StateMachineOptions.Default, which enables standard behavior such as allowing states defined in the same assembly as the state machine to be automatically included in the graph item library. Combine flags to customize behavior. This enum is marked with FlagsAttribute, so you can combine values using bitwise operations to enable multiple options. This is the StateMachine counterpart of GraphOptions. Flag values are kept in sync with GraphOptions so that a StateMachineOptions value can be safely cast to the matching GraphOptions value.

Properties

Property Description
SupportsSubgraphs Indicates that this state machine supports subgraphs.
DisableAutoInclusionOfStatesFromStateMachineAssembly Disables the automatic inclusion of states and conditions defined in the same assembly as the state machine.
Default The default state machine configuration.
None No state machine options enabled.