Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

AnimationTree

Inherits: AnimationMixer < Node < Object

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.

Tutorials

Properties

NodePath

advance_expression_base_node

NodePath(".")

NodePath

anim_player

NodePath("")

bool

deterministic

true (overrides AnimationMixer)

AnimationRootNode

tree_root

Methods

AnimationProcessCallback

get_process_callback ( ) const

void

set_process_callback ( AnimationProcessCallback mode )


Signals

animation_player_changed ( )

Emitted when the anim_player is changed.


Enumerations

enum AnimationProcessCallback:

AnimationProcessCallback ANIMATION_PROCESS_PHYSICS = 0

For backward compatibility. See AnimationMixer.ANIMATION_CA