Struct AnimationNodeStateMachinePlayback

Playback control for AnimationNodeStateMachine.

struct AnimationNodeStateMachinePlayback ;

Allows control of AnimationTree state machines created with AnimationNodeStateMachine. Retrieve with $AnimationTree.get("parameters/playback"). Example:

var state_machine = $AnimationTree.get("parameters/playback") state_machine.travel("some_state")

Methods

NameDescription
getCurrentNode Returns the currently playing animation state.
getTravelPath Returns the current travel path as computed internally by the A* algorithm.
isPlaying Returns true if an animation is playing.
start Starts playing the given animation.
stop Stops the currently playing animation.
travel Transitions from the current state to another one, following the shortest path.