2
0

AnimationNodeBlendTree.xml 3.9 KB

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