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.

AnimationNode

Inherits: Resource < RefCounted < Object

Inherited By: AnimationNodeOutput, AnimationNodeSync, AnimationNodeTimeScale, AnimationNodeTimeSeek, AnimationRootNode

AnimationTree 节点的基类。与场景节点无关。

Description

AnimationTree 节点的基础资源。通常不会直接使用,但你可以使用自定义混合公式创建自定义节点。

创建动画节点时继承这个类主要是用在 AnimationNodeBlendTree 中,否则应改用 AnimationRootNode

Tutorials

Properties

bool

filter_enabled

Methods

String

_get_caption ( ) virtual const

AnimationNode

_get_child_by_name ( StringName name ) virtual const

Dictionary

_get_child_nodes ( ) virtual const

Variant

_get_parameter_default_value ( StringName parameter ) virtual const

Array

_get_parameter_list ( ) virtual const

bool

_has_filter ( ) virtual const

bool

_is_parameter_read_only ( StringName parameter ) virtual const

float

_process ( float time, bool seek, bool is_external_seeking, bool test_only ) virtual const

bool

add_input ( String name )

void

blend_animation ( StringName animation, float time, float delta, bool seeked, bool is_external_seeking, float blend, LoopedFlag looped_flag=0 )

float

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 )

float

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 )

int

find_input ( String name ) const

int

get_input_count ( ) const

String

get_input_name ( int input ) const

Variant

get_parameter ( StringName name ) const

bool

is_path_filtered ( NodePath path ) const

void

remove_input ( int index )

void

set_filter_path ( NodePath path, bool enable )

bool

set_input_name ( int input, String name )

void

set_parameter ( StringName name, Variant value )


Signals

animation_node_removed ( int object_id, String name )

由继承自该类的节点发出,并且当其中一个动画节点移除时具有内部树。发出此信号的动画节点可以是 AnimationNodeBlendSpace1DAnimationNodeBlendSpace2DAnimationNodeStateMachineAnimationNodeBlendTree


animation_node_renamed ( int object_id, String old_name, String new_name )

由继承自该类的节点发出,并且当其中一个动画节点名称更改时具有内部树。发出此信号的动画节点可以是 AnimationNodeBlendSpace1DAnimationNodeBlendSpace2DAnimationNodeStateMachineAnimationNodeBlendTree