Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
AnimationNode¶
Inherits: Resource < RefCounted < Object
Inherited By: AnimationNodeOutput, AnimationNodeSync, AnimationNodeTimeScale, AnimationNodeTimeSeek, AnimationRootNode
AnimationTree 节点的基类。与场景节点无关。
Description¶
AnimationTree 节点的基础资源。通常不会直接使用,但你可以使用自定义混合公式创建自定义节点。
创建动画节点时继承这个类主要是用在 AnimationNodeBlendTree 中,否则应改用 AnimationRootNode。
Tutorials¶
Properties¶
Methods¶
_get_caption ( ) virtual const |
|
_get_child_by_name ( StringName name ) virtual const |
|
_get_child_nodes ( ) virtual const |
|
_get_parameter_default_value ( StringName parameter ) virtual const |
|
_get_parameter_list ( ) virtual const |
|
_has_filter ( ) virtual const |
|
_is_parameter_read_only ( StringName parameter ) virtual const |
|
_process ( float time, bool seek, bool is_external_seeking, bool test_only ) virtual const |
|
void |
blend_animation ( StringName animation, float time, float delta, bool seeked, bool is_external_seeking, float blend, LoopedFlag looped_flag=0 ) |
blend_input ( int input_index, float time, bool seek, bool is_external_seeking, float blend, FilterAction filter=0, bool sync=true, bool test_only=false ) |
|
blend_node ( StringName name, AnimationNode node, float time, bool seek, bool is_external_seeking, float blend, FilterAction filter=0, bool sync=true, bool test_only=false ) |
|
find_input ( String name ) const |
|
get_input_count ( ) const |
|
get_input_name ( int input ) const |
|
get_parameter ( StringName name ) const |
|
is_path_filtered ( NodePath path ) const |
|
void |
remove_input ( int index ) |
void |
set_filter_path ( NodePath path, bool enable ) |
set_input_name ( int input, String name ) |
|
void |
set_parameter ( StringName name, Variant value ) |
Signals¶
animation_node_removed ( int object_id, String name )
由继承自该类的节点发出,并且当其中一个动画节点移除时具有内部树。发出此信号的动画节点可以是 AnimationNodeBlendSpace1D、AnimationNodeBlendSpace2D、AnimationNodeStateMachine 和 AnimationNodeBlendTree。
animation_node_renamed ( int object_id, String old_name, String new_name )
由继承自该类的节点发出,并且当其中一个动画节点名称更改时具有内部树。发出此信号的动画节点可以是 AnimationNodeBlendSpace1D、AnimationNodeBlendSpace2D、AnimationNodeStateMachine 和 AnimationNodeBlendTree。