Skip to content

AnimationTree

Inherits: AnimationMixer < Entity < Object

A node used for advanced animation transitions in an AnimationPlayer.

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.

Type Name Default
EntityPath advance_expression_base_node EntityPath(".")
EntityPath anim_player EntityPath("")
AnimationMixer.AnimationCallbackModeDiscrete callback_mode_discrete 2 (overrides AnimationMixer)
bool deterministic true (overrides AnimationMixer)
AnimationRootNode tree_root

animation_player_changed

animation_player_changed()

Emitted when the anim_player is changed.

advance_expression_base_node

EntityPath advance_expression_base_node = EntityPath(".")

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

anim_player

EntityPath anim_player = EntityPath("")

The path to the AnimationPlayer used for animating.

tree_root

AnimationRootNode tree_root

The root animation node of this AnimationTree. See AnimationRootNode.