Path: blob/master/doc/classes/AnimationNodeBlendTree.xml
10277 views
<?xml version="1.0" encoding="UTF-8" ?>1<class name="AnimationNodeBlendTree" inherits="AnimationRootNode" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">2<brief_description>3A sub-tree of many type [AnimationNode]s used for complex animations. Used by [AnimationTree].4</brief_description>5<description>6This animation node may contain a sub-tree of any other type animation nodes, such as [AnimationNodeTransition], [AnimationNodeBlend2], [AnimationNodeBlend3], [AnimationNodeOneShot], etc. This is one of the most commonly used animation node roots.7An [AnimationNodeOutput] node named [code]output[/code] is created by default.8</description>9<tutorials>10<link title="Using AnimationTree">$DOCS_URL/tutorials/animation/animation_tree.html</link>11</tutorials>12<methods>13<method name="add_node">14<return type="void" />15<param index="0" name="name" type="StringName" />16<param index="1" name="node" type="AnimationNode" />17<param index="2" name="position" type="Vector2" default="Vector2(0, 0)" />18<description>19Adds an [AnimationNode] at the given [param position]. The [param name] is used to identify the created sub animation node later.20</description>21</method>22<method name="connect_node">23<return type="void" />24<param index="0" name="input_node" type="StringName" />25<param index="1" name="input_index" type="int" />26<param index="2" name="output_node" type="StringName" />27<description>28Connects the output of an [AnimationNode] as input for another [AnimationNode], at the input port specified by [param input_index].29</description>30</method>31<method name="disconnect_node">32<return type="void" />33<param index="0" name="input_node" type="StringName" />34<param index="1" name="input_index" type="int" />35<description>36Disconnects the animation node connected to the specified input.37</description>38</method>39<method name="get_node" qualifiers="const">40<return type="AnimationNode" />41<param index="0" name="name" type="StringName" />42<description>43Returns the sub animation node with the specified [param name].44</description>45</method>46<method name="get_node_list" qualifiers="const">47<return type="StringName[]" />48<description>49Returns a list containing the names of all sub animation nodes in this blend tree.50</description>51</method>52<method name="get_node_position" qualifiers="const">53<return type="Vector2" />54<param index="0" name="name" type="StringName" />55<description>56Returns the position of the sub animation node with the specified [param name].57</description>58</method>59<method name="has_node" qualifiers="const">60<return type="bool" />61<param index="0" name="name" type="StringName" />62<description>63Returns [code]true[/code] if a sub animation node with specified [param name] exists.64</description>65</method>66<method name="remove_node">67<return type="void" />68<param index="0" name="name" type="StringName" />69<description>70Removes a sub animation node.71</description>72</method>73<method name="rename_node">74<return type="void" />75<param index="0" name="name" type="StringName" />76<param index="1" name="new_name" type="StringName" />77<description>78Changes the name of a sub animation node.79</description>80</method>81<method name="set_node_position">82<return type="void" />83<param index="0" name="name" type="StringName" />84<param index="1" name="position" type="Vector2" />85<description>86Modifies the position of a sub animation node.87</description>88</method>89</methods>90<members>91<member name="graph_offset" type="Vector2" setter="set_graph_offset" getter="get_graph_offset" default="Vector2(0, 0)">92The global offset of all sub animation nodes.93</member>94</members>95<signals>96<signal name="node_changed">97<param index="0" name="node_name" type="StringName" />98<description>99Emitted when the input port information is changed.100</description>101</signal>102</signals>103<constants>104<constant name="CONNECTION_OK" value="0">105The connection was successful.106</constant>107<constant name="CONNECTION_ERROR_NO_INPUT" value="1">108The input node is [code]null[/code].109</constant>110<constant name="CONNECTION_ERROR_NO_INPUT_INDEX" value="2">111The specified input port is out of range.112</constant>113<constant name="CONNECTION_ERROR_NO_OUTPUT" value="3">114The output node is [code]null[/code].115</constant>116<constant name="CONNECTION_ERROR_SAME_NODE" value="4">117Input and output nodes are the same.118</constant>119<constant name="CONNECTION_ERROR_CONNECTION_EXISTS" value="5">120The specified connection already exists.121</constant>122</constants>123</class>124125126