AnimationNodeStateMachinePlayback

Inherits: Resource < Reference < Object

Playback control for AnimationNodeStateMachine.

Description

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")

Tutorials

Properties

boolresource_local_to_sceneO: true

Methods

Stringget_current_node ( ) const
PoolStringArrayget_travel_path ( ) const
boolis_playing ( ) const
voidstart ( String node )
voidstop ( )
voidtravel ( String to_node )

Method Descriptions

  • String get_current_node ( ) const

Returns the currently playing animation state.


Returns the current travel path as computed internally by the A* algorithm.


  • bool is_playing ( ) const

Returns true if an animation is playing.


Starts playing the given animation.


  • void stop ( )

Stops the currently playing animation.


  • void travel ( String to_node )

Transitions from the current state to another one, following the shortest path.

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.