virtualx-engine/doc/classes/AnimationNodeBlendTree.xml

135 lines
4.3 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8" ?>
2020-02-01 02:03:48 +01:00
<class name="AnimationNodeBlendTree" inherits="AnimationRootNode" version="4.0">
<brief_description>
2020-03-03 19:21:21 +01:00
[AnimationTree] node resource that contains many blend type nodes.
</brief_description>
<description>
2020-03-03 19:21:21 +01: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.
</description>
<tutorials>
<link>https://docs.godotengine.org/en/latest/tutorials/animation/animation_tree.html</link>
</tutorials>
<methods>
<method name="add_node">
<return type="void">
</return>
<argument index="0" name="name" type="StringName">
</argument>
<argument index="1" name="node" type="AnimationNode">
</argument>
2018-08-21 00:35:30 +02:00
<argument index="2" name="position" type="Vector2" default="Vector2( 0, 0 )">
</argument>
<description>
2020-03-03 19:21:21 +01:00
Adds an [AnimationNode] at the given [code]position[/code]. The [code]name[/code] is used to identify the created sub-node later.
</description>
</method>
<method name="connect_node">
<return type="void">
</return>
<argument index="0" name="input_node" type="StringName">
</argument>
<argument index="1" name="input_index" type="int">
</argument>
<argument index="2" name="output_node" type="StringName">
</argument>
<description>
2020-03-03 19:21:21 +01:00
Connects the output of an [AnimationNode] as input for another [AnimationNode], at the input port specified by [code]input_index[/code].
</description>
</method>
<method name="disconnect_node">
<return type="void">
</return>
<argument index="0" name="input_node" type="StringName">
</argument>
<argument index="1" name="input_index" type="int">
</argument>
<description>
2020-03-03 19:21:21 +01:00
Disconnects the node connected to the specified input.
</description>
</method>
<method name="get_node" qualifiers="const">
<return type="AnimationNode">
</return>
<argument index="0" name="name" type="StringName">
</argument>
<description>
2020-03-03 19:21:21 +01:00
Returns the sub-node with the specified [code]name[/code].
</description>
</method>
2018-08-21 00:35:30 +02:00
<method name="get_node_position" qualifiers="const">
<return type="Vector2">
</return>
<argument index="0" name="name" type="StringName">
2018-08-21 00:35:30 +02:00
</argument>
<description>
2020-03-03 19:21:21 +01:00
Returns the position of the sub-node with the specified [code]name[/code].
2018-08-21 00:35:30 +02:00
</description>
</method>
<method name="has_node" qualifiers="const">
<return type="bool">
</return>
<argument index="0" name="name" type="StringName">
</argument>
<description>
2020-03-03 19:21:21 +01:00
Returns [code]true[/code] if a sub-node with specified [code]name[/code] exists.
</description>
</method>
<method name="remove_node">
<return type="void">
</return>
<argument index="0" name="name" type="StringName">
</argument>
<description>
2020-03-03 19:21:21 +01:00
Removes a sub-node.
</description>
</method>
<method name="rename_node">
<return type="void">
</return>
<argument index="0" name="name" type="StringName">
</argument>
<argument index="1" name="new_name" type="StringName">
</argument>
<description>
2020-03-03 19:21:21 +01:00
Changes the name of a sub-node.
</description>
</method>
2018-08-21 00:35:30 +02:00
<method name="set_node_position">
<return type="void">
</return>
<argument index="0" name="name" type="StringName">
2018-08-21 00:35:30 +02:00
</argument>
<argument index="1" name="position" type="Vector2">
</argument>
<description>
2020-03-03 19:21:21 +01:00
Modifies the position of a sub-node.
2018-08-21 00:35:30 +02:00
</description>
</method>
</methods>
<members>
<member name="graph_offset" type="Vector2" setter="set_graph_offset" getter="get_graph_offset" default="Vector2( 0, 0 )">
2020-03-03 19:21:21 +01:00
The global offset of all sub-nodes.
</member>
</members>
<constants>
<constant name="CONNECTION_OK" value="0">
2020-03-03 19:21:21 +01:00
The connection was successful.
</constant>
<constant name="CONNECTION_ERROR_NO_INPUT" value="1">
2020-03-03 19:21:21 +01:00
The input node is [code]null[/code].
</constant>
<constant name="CONNECTION_ERROR_NO_INPUT_INDEX" value="2">
2020-03-03 19:21:21 +01:00
The specified input port is out of range.
</constant>
<constant name="CONNECTION_ERROR_NO_OUTPUT" value="3">
2020-03-03 19:21:21 +01:00
The output node is [code]null[/code].
</constant>
<constant name="CONNECTION_ERROR_SAME_NODE" value="4">
2020-03-03 19:21:21 +01:00
Input and output nodes are the same.
</constant>
<constant name="CONNECTION_ERROR_CONNECTION_EXISTS" value="5">
2020-03-03 19:21:21 +01:00
The specified connection already exists.
</constant>
</constants>
</class>