2018-07-26 09:56:21 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2021-04-26 11:14:51 +00:00
<class name= "AnimationNodeBlendTree" inherits= "AnimationRootNode" version= "3.4" >
2018-07-26 09:56:21 +00:00
<brief_description >
2020-03-03 18:21:21 +00:00
[AnimationTree] node resource that contains many blend type nodes.
2018-07-26 09:56:21 +00:00
</brief_description>
<description >
2020-03-03 18:21:21 +00:00
This node may contain a sub-tree of any other blend type nodes, such as mix, blend2, blend3, one shot, etc. This is one of the most commonly used roots.
2018-07-26 09:56:21 +00:00
</description>
<tutorials >
2021-08-12 14:58:38 +00:00
<link > https://docs.godotengine.org/en/3.4/tutorials/animation/animation_tree.html</link>
2018-07-26 09:56:21 +00:00
</tutorials>
<methods >
<method name= "add_node" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "name" type= "String" />
<argument index= "1" name= "node" type= "AnimationNode" />
<argument index= "2" name= "position" type= "Vector2" default= "Vector2( 0, 0 )" />
2018-07-26 09:56:21 +00:00
<description >
2020-03-03 18:21:21 +00:00
Adds an [AnimationNode] at the given [code]position[/code]. The [code]name[/code] is used to identify the created sub-node later.
2018-07-26 09:56:21 +00:00
</description>
</method>
<method name= "connect_node" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "input_node" type= "String" />
<argument index= "1" name= "input_index" type= "int" />
<argument index= "2" name= "output_node" type= "String" />
2018-07-26 09:56:21 +00:00
<description >
2020-03-03 18:21:21 +00:00
Connects the output of an [AnimationNode] as input for another [AnimationNode], at the input port specified by [code]input_index[/code].
2018-07-26 09:56:21 +00:00
</description>
</method>
<method name= "disconnect_node" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "input_node" type= "String" />
<argument index= "1" name= "input_index" type= "int" />
2018-07-26 09:56:21 +00:00
<description >
2020-03-03 18:21:21 +00:00
Disconnects the node connected to the specified input.
2018-07-26 09:56:21 +00:00
</description>
</method>
<method name= "get_node" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "AnimationNode" />
<argument index= "0" name= "name" type= "String" />
2018-07-26 09:56:21 +00:00
<description >
2020-03-03 18:21:21 +00:00
Returns the sub-node with the specified [code]name[/code].
2018-07-26 09:56:21 +00:00
</description>
</method>
2018-08-20 22:35:30 +00:00
<method name= "get_node_position" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Vector2" />
<argument index= "0" name= "name" type= "String" />
2018-08-20 22:35:30 +00:00
<description >
2020-03-03 18:21:21 +00:00
Returns the position of the sub-node with the specified [code]name[/code].
2018-08-20 22:35:30 +00:00
</description>
</method>
2018-07-26 09:56:21 +00:00
<method name= "has_node" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
<argument index= "0" name= "name" type= "String" />
2018-07-26 09:56:21 +00:00
<description >
2020-03-03 18:21:21 +00:00
Returns [code]true[/code] if a sub-node with specified [code]name[/code] exists.
2018-07-26 09:56:21 +00:00
</description>
</method>
<method name= "remove_node" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "name" type= "String" />
2018-07-26 09:56:21 +00:00
<description >
2020-03-03 18:21:21 +00:00
Removes a sub-node.
2018-07-26 09:56:21 +00:00
</description>
</method>
<method name= "rename_node" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "name" type= "String" />
<argument index= "1" name= "new_name" type= "String" />
2018-07-26 09:56:21 +00:00
<description >
2020-03-03 18:21:21 +00:00
Changes the name of a sub-node.
2018-07-26 09:56:21 +00:00
</description>
</method>
2018-08-20 22:35:30 +00:00
<method name= "set_node_position" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "name" type= "String" />
<argument index= "1" name= "position" type= "Vector2" />
2018-08-20 22:35:30 +00:00
<description >
2020-03-03 18:21:21 +00:00
Modifies the position of a sub-node.
2018-08-20 22:35:30 +00:00
</description>
</method>
2018-07-26 09:56:21 +00:00
</methods>
<members >
2019-06-29 10:38:01 +00:00
<member name= "graph_offset" type= "Vector2" setter= "set_graph_offset" getter= "get_graph_offset" default= "Vector2( 0, 0 )" >
2020-03-03 18:21:21 +00:00
The global offset of all sub-nodes.
2018-07-26 09:56:21 +00:00
</member>
</members>
<constants >
<constant name= "CONNECTION_OK" value= "0" >
2020-03-03 18:21:21 +00:00
The connection was successful.
2018-07-26 09:56:21 +00:00
</constant>
<constant name= "CONNECTION_ERROR_NO_INPUT" value= "1" >
2020-03-03 18:21:21 +00:00
The input node is [code]null[/code].
2018-07-26 09:56:21 +00:00
</constant>
<constant name= "CONNECTION_ERROR_NO_INPUT_INDEX" value= "2" >
2020-03-03 18:21:21 +00:00
The specified input port is out of range.
2018-07-26 09:56:21 +00:00
</constant>
<constant name= "CONNECTION_ERROR_NO_OUTPUT" value= "3" >
2020-03-03 18:21:21 +00:00
The output node is [code]null[/code].
2018-07-26 09:56:21 +00:00
</constant>
<constant name= "CONNECTION_ERROR_SAME_NODE" value= "4" >
2020-03-03 18:21:21 +00:00
Input and output nodes are the same.
2018-07-26 09:56:21 +00:00
</constant>
<constant name= "CONNECTION_ERROR_CONNECTION_EXISTS" value= "5" >
2020-03-03 18:21:21 +00:00
The specified connection already exists.
2018-07-26 09:56:21 +00:00
</constant>
</constants>
</class>