AnimationTree

继承: AnimationMixer < Node < 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.

属性

方法


信号

animation_player_changed ( )

Emitted when the anim_player is changed.


枚举

enum AnimationProcessCallback:

AnimationProcessCallback ANIMATION_PROCESS_PHYSICS = 0

已弃用: See AnimationMixer.ANIMATION_CALLBACK_MODE_PROCESS_PHYSICS.

AnimationProcessCallback ANIMATION_PROCESS_IDLE = 1

已弃用: See AnimationMixer.ANIMATION_CALLBACK_MODE_PROCESS_IDLE.

AnimationProcessCallback ANIMATION_PROCESS_MANUAL = 2

已弃用: See AnimationMixer.ANIMATION_CALLBACK_MODE_PROCESS_MANUAL.


属性说明

NodePath advance_expression_base_node = NodePath(".")

  • void set_advance_expression_base_node ( value: NodePath )
  • 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 ( value: NodePath )
  • NodePath get_animation_player ( )

The path to the AnimationPlayer used for animating.


AnimationRootNode tree_root

The root animation node of this AnimationTree. See AnimationRootNode.


方法说明

AnimationProcessCallback get_process_callback ( ) const1

已弃用: Use AnimationMixer.callback_mode_process instead.

Returns the process notification in which to update animations.


void set_process_callback ( mode: AnimationProcessCallback )

已弃用: Use AnimationMixer.callback_mode_process instead.

Sets the process notification in which to update animations.

2

本方法通常需要用户覆盖才能生效。

1

本方法无副作用,不会修改该实例的任何成员变量。

3

本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。

4

本方法用于构造某个类型。

5

调用本方法无需实例,可直接使用类名进行调用。

6

本方法描述的是使用本类型作为左操作数的有效运算符。

7

这个值是由下列位标志构成位掩码的整数。

8

无返回值。