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_CALLBACK_MODE_PROCESS_PHYSICS.

AnimationProcessCallback ANIMATION_PROCESS_IDLE = 1

For backward compatibility. See AnimationMixer.ANIMATION_CALLBACK_MODE_PROCESS_IDLE.

AnimationProcessCallback ANIMATION_PROCESS_MANUAL = 2

For backward compatibility. See AnimationMixer.ANIMATION_CALLBACK_MODE_PROCESS_MANUAL.


Property Descriptions

NodePath advance_expression_base_node = NodePath(".")

  • void set_advance_expression_base_node ( NodePath value )

  • NodePath get_advance_expression_base_node ( )

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


NodePath anim_player = NodePath("")

  • void set_animation_player ( NodePath value )

  • NodePath get_animation_player ( )

The path to the AnimationPlayer used for animating.


AnimationRootNode tree_root

The root animation node of this AnimationTree. See AnimationRootNode.


Method Descriptions

AnimationProcessCallback get_process_callback ( ) const

For backward compatibility. See AnimationCallbackModeProcess.


void set_process_callback ( AnimationProcessCallback mode )

For backward compatibility. See AnimationCallbackModeProcess.