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.
属性
NodePath | advance_expression_base_node |
NodePath | anim_player |
AnimationCallbackModeDiscrete | callback_mode_discrete |
bool | deterministic |
AnimationRootNode | tree_root |
方法
AnimationProcessCallback | get_process_callback ( ) const1 |
void | set_process_callback ( mode: AnimationProcessCallback ) |
信号
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("")
The path to the AnimationPlayer
used for animating.
AnimationRootNode
tree_root
void
set_tree_root ( value:AnimationRootNode
)AnimationRootNode
get_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.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。