One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

AnimationGraphComponent.ActiveStateMachineNode

struct · iOS 27.0+ · SDK 27.1

struct ActiveStateMachineNode

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

Members (6)

get · iOS 27.0+

currentState

TypeScript
get currentState(): number
Swift declaration
var currentState: Int { get }

The ID of the state the state machine is currently in.

get · iOS 27.0+

previousState

TypeScript
get previousState(): number
Swift declaration
var previousState: Int { get }

The ID of the state the state machine was in immediately before ``currentState``.

get · iOS 27.0+

lastTransition

TypeScript
get lastTransition(): number
Swift declaration
var lastTransition: Int { get }

The ID of the most recent transition the state machine took.

get · iOS 27.0+

id

TypeScript
get id(): number
Swift declaration
let id: Int

The unique identifier of the node within the compiled graph.

get · iOS 27.0+

name

TypeScript
get name(): string
Swift declaration
let name: String

The author-supplied name of the node from the graph definition.

get · iOS 27.0+

wasReset

TypeScript
get wasReset(): boolean
Swift declaration
var wasReset: Bool { get }

A Boolean value that indicates whether the node was reset during the last evaluation tick.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →