AnimationNodeBlendTree.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="AnimationNodeBlendTree" inherits="AnimationRootNode" version="3.2">
  3. <brief_description>
  4. [AnimationTree] node resource that contains many blend type nodes.
  5. </brief_description>
  6. <description>
  7. 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.
  8. </description>
  9. <tutorials>
  10. <link>https://docs.godotengine.org/en/latest/tutorials/animation/animation_tree.html</link>
  11. </tutorials>
  12. <methods>
  13. <method name="add_node">
  14. <return type="void">
  15. </return>
  16. <argument index="0" name="name" type="String">
  17. </argument>
  18. <argument index="1" name="node" type="AnimationNode">
  19. </argument>
  20. <argument index="2" name="position" type="Vector2" default="Vector2( 0, 0 )">
  21. </argument>
  22. <description>
  23. Adds an [AnimationNode] at the given [code]position[/code]. The [code]name[/code] is used to identify the created sub-node later.
  24. </description>
  25. </method>
  26. <method name="connect_node">
  27. <return type="void">
  28. </return>
  29. <argument index="0" name="input_node" type="String">
  30. </argument>
  31. <argument index="1" name="input_index" type="int">
  32. </argument>
  33. <argument index="2" name="output_node" type="String">
  34. </argument>
  35. <description>
  36. Connects the output of an [AnimationNode] as input for another [AnimationNode], at the input port specified by [code]input_index[/code].
  37. </description>
  38. </method>
  39. <method name="disconnect_node">
  40. <return type="void">
  41. </return>
  42. <argument index="0" name="input_node" type="String">
  43. </argument>
  44. <argument index="1" name="input_index" type="int">
  45. </argument>
  46. <description>
  47. Disconnects the node connected to the specified input.
  48. </description>
  49. </method>
  50. <method name="get_node" qualifiers="const">
  51. <return type="AnimationNode">
  52. </return>
  53. <argument index="0" name="name" type="String">
  54. </argument>
  55. <description>
  56. Returns the sub-node with the specified [code]name[/code].
  57. </description>
  58. </method>
  59. <method name="get_node_position" qualifiers="const">
  60. <return type="Vector2">
  61. </return>
  62. <argument index="0" name="name" type="String">
  63. </argument>
  64. <description>
  65. Returns the position of the sub-node with the specified [code]name[/code].
  66. </description>
  67. </method>
  68. <method name="has_node" qualifiers="const">
  69. <return type="bool">
  70. </return>
  71. <argument index="0" name="name" type="String">
  72. </argument>
  73. <description>
  74. Returns [code]true[/code] if a sub-node with specified [code]name[/code] exists.
  75. </description>
  76. </method>
  77. <method name="remove_node">
  78. <return type="void">
  79. </return>
  80. <argument index="0" name="name" type="String">
  81. </argument>
  82. <description>
  83. Removes a sub-node.
  84. </description>
  85. </method>
  86. <method name="rename_node">
  87. <return type="void">
  88. </return>
  89. <argument index="0" name="name" type="String">
  90. </argument>
  91. <argument index="1" name="new_name" type="String">
  92. </argument>
  93. <description>
  94. Changes the name of a sub-node.
  95. </description>
  96. </method>
  97. <method name="set_node_position">
  98. <return type="void">
  99. </return>
  100. <argument index="0" name="name" type="String">
  101. </argument>
  102. <argument index="1" name="position" type="Vector2">
  103. </argument>
  104. <description>
  105. Modifies the position of a sub-node.
  106. </description>
  107. </method>
  108. </methods>
  109. <members>
  110. <member name="graph_offset" type="Vector2" setter="set_graph_offset" getter="get_graph_offset" default="Vector2( 0, 0 )">
  111. The global offset of all sub-nodes.
  112. </member>
  113. </members>
  114. <constants>
  115. <constant name="CONNECTION_OK" value="0">
  116. The connection was successful.
  117. </constant>
  118. <constant name="CONNECTION_ERROR_NO_INPUT" value="1">
  119. The input node is [code]null[/code].
  120. </constant>
  121. <constant name="CONNECTION_ERROR_NO_INPUT_INDEX" value="2">
  122. The specified input port is out of range.
  123. </constant>
  124. <constant name="CONNECTION_ERROR_NO_OUTPUT" value="3">
  125. The output node is [code]null[/code].
  126. </constant>
  127. <constant name="CONNECTION_ERROR_SAME_NODE" value="4">
  128. Input and output nodes are the same.
  129. </constant>
  130. <constant name="CONNECTION_ERROR_CONNECTION_EXISTS" value="5">
  131. The specified connection already exists.
  132. </constant>
  133. </constants>
  134. </class>