currentState
TypeScriptget currentState(): numberSwift declarationvar currentState: Int { get }The ID of the state the state machine is currently in.
struct · iOS 27.0+ · SDK 27.1
struct ActiveStateMachineNodeDebug information for an active state machine node within the graph. Use this type to read the current and previous states of a state machine, along with the most recent transition the state machine took. The state and transition values are IDs into the graph definition rather than human-readable strings.
get currentState(): numberSwift declarationvar currentState: Int { get }The ID of the state the state machine is currently in.
get previousState(): numberSwift declarationvar previousState: Int { get }The ID of the state the state machine was in immediately before ``currentState``.
get lastTransition(): numberSwift declarationvar lastTransition: Int { get }The ID of the most recent transition the state machine took.
get id(): numberSwift declarationlet id: IntThe unique identifier of the node within the compiled graph.
get name(): stringSwift declarationlet name: StringThe author-supplied name of the node from the graph definition.
get wasReset(): booleanSwift declarationvar wasReset: Bool { get }A Boolean value that indicates whether the node was reset during the last evaluation tick.
No declarations were skipped in this snapshot.