Inherits: Resource < Reference < Object
Playback control for AnimationNodeStateMachine.
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")
| bool | resource_local_to_scene |
true (parent override)
|
| String | get_current_node ( ) const |
| PoolStringArray | get_travel_path ( ) const |
| bool | is_playing ( ) const |
| void | start ( String node ) |
| void | stop ( ) |
| void | travel ( String to_node ) |
Returns the currently playing animation state.
Returns the current travel path as computed internally by the A* algorithm.
Returns true if an animation is playing.
Starts playing the given animation.
Stops the currently playing animation.
Transitions from the current state to another one, following the shortest path.
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_animationnodestatemachineplayback.html