AnimationNodeBlendTree.xml 4.2 KB

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