Provides playback control for an [AnimationNodeStateMachine].
Allows control of [AnimationTree] state machines created with [AnimationNodeStateMachine]. Retrieve with [code]$AnimationTree.get("parameters/playback")[/code]. [b]Example:[/b] [codeblocks] [gdscript] var state_machine = $AnimationTree.get("parameters/playback") state_machine.travel("some_state") [/gdscript] [csharp] var stateMachine = GetNode<AnimationTree>("AnimationTree").Get("parameters/playback").As<AnimationNodeStateMachinePlayback>(); stateMachine.Travel("some_state"); [/csharp] [/codeblocks]
$DOCS_URL/tutorials/animation/animation_tree.html
Returns the current state length. [b]Note:[/b] It is possible that any [AnimationRootNode] can be nodes as well as animations. This means that there can be multiple animations within a single state. Which animation length has priority depends on the nodes connected inside it. Also, if a transition does not reset, the remaining length at that point will be returned.
Returns the currently playing animation state. [b]Note:[/b] When using a cross-fade, the current state changes to the next state immediately after the cross-fade begins.
Returns the playback position within the current animation state.
Returns the starting state of currently fading animation.
Returns the current travel path as computed internally by the A* algorithm.
Returns [code]true[/code] if an animation is playing.
If there is a next path by travel or auto advance, immediately transitions from the current state to the next state.
Starts playing the given animation. If [param reset] is [code]true[/code], the animation is played from the beginning.
Stops the currently playing animation.
Transitions from the current state to another one, following the shortest path. If the path does not connect from the current state, the animation will play after the state teleports. If [param reset_on_teleport] is [code]true[/code], the animation is played from the beginning when the travel cause a teleportation.