Class AnyState
A special state that can trigger transitions to other states, no matter which state is currently active. This state cannot receive transitions.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
public sealed class AnyState : State, IState, IGraphElementWithDebugData, IGraphElementWithData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable
Constructors
AnyState()
Declaration
public AnyState()
Properties
canBeDestination
Declaration
[DoNotSerialize]
public override bool canBeDestination { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Methods
OnBranchTo(Flow, IState)
Declaration
public override void OnBranchTo(Flow flow, IState destination)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
IState | destination |
Overrides
OnExit(Flow, StateExitReason)
Declaration
public override void OnExit(Flow flow, StateExitReason reason)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
StateExitReason | reason |