AnimationNodeBlendTree
Inherits:AnimationRootNode<AnimationNode<Resource<RefCounted<Object
A sub-tree of many typeAnimationNodes used for complex animations. Used byAnimationTree.
Description
This animation node may contain a sub-tree of any other type animation nodes, such asAnimationNodeTransition,AnimationNodeBlend2,AnimationNodeBlend3,AnimationNodeOneShot, etc. This is one of the most commonly used animation node roots.
AnAnimationNodeOutput node namedoutput
is created by default.
Tutorials
Properties
|
Methods
add_node(name:StringName, node:AnimationNode, position:Vector2 = Vector2(0, 0)) | |
connect_node(input_node:StringName, input_index:int, output_node:StringName) | |
disconnect_node(input_node:StringName, input_index:int) | |
get_node(name:StringName)const | |
has_node(name:StringName)const | |
remove_node(name:StringName) | |
rename_node(name:StringName, new_name:StringName) | |
set_node_position(name:StringName, position:Vector2) |
Signals
node_changed(node_name:StringName)🔗
Emitted when the input port information is changed.
Constants
CONNECTION_OK =0
🔗
The connection was successful.
CONNECTION_ERROR_NO_INPUT =1
🔗
The input node isnull
.
CONNECTION_ERROR_NO_INPUT_INDEX =2
🔗
The specified input port is out of range.
CONNECTION_ERROR_NO_OUTPUT =3
🔗
The output node isnull
.
CONNECTION_ERROR_SAME_NODE =4
🔗
Input and output nodes are the same.
CONNECTION_ERROR_CONNECTION_EXISTS =5
🔗
The specified connection already exists.
Property Descriptions
Vector2graph_offset =Vector2(0,0)
🔗
Vector2get_graph_offset()
The global offset of all sub animation nodes.
Method Descriptions
voidadd_node(name:StringName, node:AnimationNode, position:Vector2 = Vector2(0, 0))🔗
Adds anAnimationNode at the givenposition
. Thename
is used to identify the created sub animation node later.
voidconnect_node(input_node:StringName, input_index:int, output_node:StringName)🔗
Connects the output of anAnimationNode as input for anotherAnimationNode, at the input port specified byinput_index
.
voiddisconnect_node(input_node:StringName, input_index:int)🔗
Disconnects the animation node connected to the specified input.
AnimationNodeget_node(name:StringName)const🔗
Returns the sub animation node with the specifiedname
.
Vector2get_node_position(name:StringName)const🔗
Returns the position of the sub animation node with the specifiedname
.
boolhas_node(name:StringName)const🔗
Returnstrue
if a sub animation node with specifiedname
exists.
voidremove_node(name:StringName)🔗
Removes a sub animation node.
voidrename_node(name:StringName, new_name:StringName)🔗
Changes the name of a sub animation node.
voidset_node_position(name:StringName, position:Vector2)🔗
Modifies the position of a sub animation node.