State machine for control of animations.
Contains multiple nodes representing animation states, connected in a graph. Node transitions can be configured to happen automatically or via code, using a shortest-path algorithm. Retrieve the [AnimationNodeStateMachinePlayback] object from the [AnimationTree] node to control it programmatically. [b]Example:[/b] [codeblock] var state_machine = $AnimationTree.get("parameters/playback") state_machine.travel("some_state") [/codeblock]
$DOCS_URL/tutorials/animation/animation_tree.html
Returns the graph's end node.
Returns the draw offset of the graph. Used for display in the editor.
Returns the given animation node's name.
Returns the graph's end node.
Returns the given transition.
Returns the number of connections in the graph.
Returns the given transition's start node.
Returns the given transition's end node.
Deletes the given transition by index.
Sets the draw offset of the graph. Used for display in the editor.