Class reference
AnimationTree
Inherits AnimationMixer
A node used for advanced animation transitions in an AnimationPlayer.
Description
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.
Properties
NodePath advance_expression_base_node = NodePath(".")
NodePath advance_expression_base_node = NodePath(".")The path to the Node used to evaluate the AnimationNode Expression if one is not explicitly specified internally.
NodePath anim_player = NodePath("")
NodePath anim_player = NodePath("")The path to the AnimationPlayer used for animating.
int callback_mode_discrete = 2
int callback_mode_discrete = 2bool deterministic = true
bool deterministic = trueAnimationRootNode tree_root
AnimationRootNode tree_rootThe root animation node of this AnimationTree. See AnimationRootNode.
Methods
int get_process_callback() const
int get_process_callback() constUse AnimationMixer.callback_mode_process instead.
Returns the process notification in which to update animations.
void set_process_callback(int mode)
int mode)Use AnimationMixer.callback_mode_process instead.
Sets the process notification in which to update animations.
Signals
animation_player_changed()
Emitted when the anim_player is changed.