Inheritance #

AnimationTree
Table of contents

AnimationTree #

is_instantiable, Node, core, not_builtin_classes

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.

Members #

var advance_expression_base_node: NodePath = NodePath(".")#

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

var anim_player: NodePath = NodePath("")#

The path to the AnimationPlayer used for animating.

var callback_mode_discrete = ANIMATION_CALLBACK_MODE_DISCRETE_FORCE_CONTINUOUS#

var deterministic: bool = true#

var tree_root: AnimationRootNode#

The root animation node of this AnimationTree. See AnimationRootNode.

Methods #

const func get_process_callback() -> intAnimationTree.AnimationProcessCallback#

Returns the process notification in which to update animations.

func set_process_callback(mode: int enumAnimationTree.AnimationProcessCallback) -> void#

Sets the process notification in which to update animations.

Annotations #

Constants #

const ANIMATION_PROCESS_PHYSICS = 0 enum AnimationProcessCallback
Deprecated
#

const ANIMATION_PROCESS_IDLE = 1 enum AnimationProcessCallback
Deprecated
#

const ANIMATION_PROCESS_MANUAL = 2 enum AnimationProcessCallback
Deprecated
#

Constructors #

Enums #

AnimationProcessCallback#

enum AnimationProcessCallback { ANIMATION_PROCESS_PHYSICS = 0, ANIMATION_PROCESS_IDLE = 1, ANIMATION_PROCESS_MANUAL = 2, }

Operators #

Signals #

signal animation_player_changed()#

Emitted when the anim_player is changed.

Theme Items #

Tutorials #