Table of Contents

Class AnimationTree

A node used for advanced animation transitions in an AnimationPlayer.

Inheritance
AnimationTree

Remarks

A node used for advanced animation transitions in an AnimationPlayer.

Note: When linked with an AnimationPlayer, several properties and methods of the corresponding AnimationPlayer will not function as expected. Playback and transitions should be handled using only the AnimationTree and its constituent AnimationNode(s). The AnimationPlayer node should be used solely for adding, deleting, and editing animations.

See Also

Properties

advance_expression_base_node

The path to the Node used to evaluate the AnimationNode Expression if one is not explicitly specified internally.

var advance_expression_base_node : NodePath = NodePath(".")

Property Value

NodePath

Remarks

  • void set_advance_expression_base_node(NodePath value)
  • NodePath get_advance_expression_base_node

anim_player

The path to the AnimationPlayer used for animating.

var anim_player : NodePath = NodePath("")

Property Value

NodePath

Remarks

tree_root

The root animation node of this AnimationTree. See AnimationRootNode.

var tree_root : AnimationRootNode

Property Value

AnimationRootNode

Remarks

Methods

get_process_callback

Qualifiers: const

Returns the process notification in which to update animations.

int get_process_callback

set_process_callback(int)

Sets the process notification in which to update animations.

void set_process_callback(int mode)

Parameters

mode int

Events

animation_player_changed

Emitted when the anim_player is changed.

signal animation_player_changed