class_animationnodeblendtree.rst 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/AnimationNodeBlendTree.xml.
  6. .. _class_AnimationNodeBlendTree:
  7. AnimationNodeBlendTree
  8. ======================
  9. **Inherits:** :ref:`AnimationRootNode<class_AnimationRootNode>` **<** :ref:`AnimationNode<class_AnimationNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. :ref:`AnimationTree<class_AnimationTree>` node resource that contains many blend type nodes.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This node may contain a sub-tree of any other blend type nodes, such as :ref:`AnimationNodeTransition<class_AnimationNodeTransition>`, :ref:`AnimationNodeBlend2<class_AnimationNodeBlend2>`, :ref:`AnimationNodeBlend3<class_AnimationNodeBlend3>`, :ref:`AnimationNodeOneShot<class_AnimationNodeOneShot>`, etc. This is one of the most commonly used roots.
  15. An :ref:`AnimationNodeOutput<class_AnimationNodeOutput>` node named ``output`` is created by default.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`../tutorials/animation/animation_tree`
  20. .. rst-class:: classref-reftable-group
  21. Properties
  22. ----------
  23. .. table::
  24. :widths: auto
  25. +-------------------------------+-------------------------------------------------------------------------+---------------------+
  26. | :ref:`Vector2<class_Vector2>` | :ref:`graph_offset<class_AnimationNodeBlendTree_property_graph_offset>` | ``Vector2( 0, 0 )`` |
  27. +-------------------------------+-------------------------------------------------------------------------+---------------------+
  28. .. rst-class:: classref-reftable-group
  29. Methods
  30. -------
  31. .. table::
  32. :widths: auto
  33. +-------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | void | :ref:`add_node<class_AnimationNodeBlendTree_method_add_node>` **(** :ref:`String<class_String>` name, :ref:`AnimationNode<class_AnimationNode>` node, :ref:`Vector2<class_Vector2>` position=Vector2( 0, 0 ) **)** |
  35. +-------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | void | :ref:`connect_node<class_AnimationNodeBlendTree_method_connect_node>` **(** :ref:`String<class_String>` input_node, :ref:`int<class_int>` input_index, :ref:`String<class_String>` output_node **)** |
  37. +-------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | void | :ref:`disconnect_node<class_AnimationNodeBlendTree_method_disconnect_node>` **(** :ref:`String<class_String>` input_node, :ref:`int<class_int>` input_index **)** |
  39. +-------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | :ref:`AnimationNode<class_AnimationNode>` | :ref:`get_node<class_AnimationNodeBlendTree_method_get_node>` **(** :ref:`String<class_String>` name **)** |const| |
  41. +-------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | :ref:`Vector2<class_Vector2>` | :ref:`get_node_position<class_AnimationNodeBlendTree_method_get_node_position>` **(** :ref:`String<class_String>` name **)** |const| |
  43. +-------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. | :ref:`bool<class_bool>` | :ref:`has_node<class_AnimationNodeBlendTree_method_has_node>` **(** :ref:`String<class_String>` name **)** |const| |
  45. +-------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  46. | void | :ref:`remove_node<class_AnimationNodeBlendTree_method_remove_node>` **(** :ref:`String<class_String>` name **)** |
  47. +-------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  48. | void | :ref:`rename_node<class_AnimationNodeBlendTree_method_rename_node>` **(** :ref:`String<class_String>` name, :ref:`String<class_String>` new_name **)** |
  49. +-------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  50. | void | :ref:`set_node_position<class_AnimationNodeBlendTree_method_set_node_position>` **(** :ref:`String<class_String>` name, :ref:`Vector2<class_Vector2>` position **)** |
  51. +-------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  52. .. rst-class:: classref-section-separator
  53. ----
  54. .. rst-class:: classref-descriptions-group
  55. Constants
  56. ---------
  57. .. _class_AnimationNodeBlendTree_constant_CONNECTION_OK:
  58. .. rst-class:: classref-constant
  59. **CONNECTION_OK** = ``0``
  60. The connection was successful.
  61. .. _class_AnimationNodeBlendTree_constant_CONNECTION_ERROR_NO_INPUT:
  62. .. rst-class:: classref-constant
  63. **CONNECTION_ERROR_NO_INPUT** = ``1``
  64. The input node is ``null``.
  65. .. _class_AnimationNodeBlendTree_constant_CONNECTION_ERROR_NO_INPUT_INDEX:
  66. .. rst-class:: classref-constant
  67. **CONNECTION_ERROR_NO_INPUT_INDEX** = ``2``
  68. The specified input port is out of range.
  69. .. _class_AnimationNodeBlendTree_constant_CONNECTION_ERROR_NO_OUTPUT:
  70. .. rst-class:: classref-constant
  71. **CONNECTION_ERROR_NO_OUTPUT** = ``3``
  72. The output node is ``null``.
  73. .. _class_AnimationNodeBlendTree_constant_CONNECTION_ERROR_SAME_NODE:
  74. .. rst-class:: classref-constant
  75. **CONNECTION_ERROR_SAME_NODE** = ``4``
  76. Input and output nodes are the same.
  77. .. _class_AnimationNodeBlendTree_constant_CONNECTION_ERROR_CONNECTION_EXISTS:
  78. .. rst-class:: classref-constant
  79. **CONNECTION_ERROR_CONNECTION_EXISTS** = ``5``
  80. The specified connection already exists.
  81. .. rst-class:: classref-section-separator
  82. ----
  83. .. rst-class:: classref-descriptions-group
  84. Property Descriptions
  85. ---------------------
  86. .. _class_AnimationNodeBlendTree_property_graph_offset:
  87. .. rst-class:: classref-property
  88. :ref:`Vector2<class_Vector2>` **graph_offset** = ``Vector2( 0, 0 )``
  89. .. rst-class:: classref-property-setget
  90. - void **set_graph_offset** **(** :ref:`Vector2<class_Vector2>` value **)**
  91. - :ref:`Vector2<class_Vector2>` **get_graph_offset** **(** **)**
  92. The global offset of all sub-nodes.
  93. .. rst-class:: classref-section-separator
  94. ----
  95. .. rst-class:: classref-descriptions-group
  96. Method Descriptions
  97. -------------------
  98. .. _class_AnimationNodeBlendTree_method_add_node:
  99. .. rst-class:: classref-method
  100. void **add_node** **(** :ref:`String<class_String>` name, :ref:`AnimationNode<class_AnimationNode>` node, :ref:`Vector2<class_Vector2>` position=Vector2( 0, 0 ) **)**
  101. Adds an :ref:`AnimationNode<class_AnimationNode>` at the given ``position``. The ``name`` is used to identify the created sub-node later.
  102. .. rst-class:: classref-item-separator
  103. ----
  104. .. _class_AnimationNodeBlendTree_method_connect_node:
  105. .. rst-class:: classref-method
  106. void **connect_node** **(** :ref:`String<class_String>` input_node, :ref:`int<class_int>` input_index, :ref:`String<class_String>` output_node **)**
  107. Connects the output of an :ref:`AnimationNode<class_AnimationNode>` as input for another :ref:`AnimationNode<class_AnimationNode>`, at the input port specified by ``input_index``.
  108. .. rst-class:: classref-item-separator
  109. ----
  110. .. _class_AnimationNodeBlendTree_method_disconnect_node:
  111. .. rst-class:: classref-method
  112. void **disconnect_node** **(** :ref:`String<class_String>` input_node, :ref:`int<class_int>` input_index **)**
  113. Disconnects the node connected to the specified input.
  114. .. rst-class:: classref-item-separator
  115. ----
  116. .. _class_AnimationNodeBlendTree_method_get_node:
  117. .. rst-class:: classref-method
  118. :ref:`AnimationNode<class_AnimationNode>` **get_node** **(** :ref:`String<class_String>` name **)** |const|
  119. Returns the sub-node with the specified ``name``.
  120. .. rst-class:: classref-item-separator
  121. ----
  122. .. _class_AnimationNodeBlendTree_method_get_node_position:
  123. .. rst-class:: classref-method
  124. :ref:`Vector2<class_Vector2>` **get_node_position** **(** :ref:`String<class_String>` name **)** |const|
  125. Returns the position of the sub-node with the specified ``name``.
  126. .. rst-class:: classref-item-separator
  127. ----
  128. .. _class_AnimationNodeBlendTree_method_has_node:
  129. .. rst-class:: classref-method
  130. :ref:`bool<class_bool>` **has_node** **(** :ref:`String<class_String>` name **)** |const|
  131. Returns ``true`` if a sub-node with specified ``name`` exists.
  132. .. rst-class:: classref-item-separator
  133. ----
  134. .. _class_AnimationNodeBlendTree_method_remove_node:
  135. .. rst-class:: classref-method
  136. void **remove_node** **(** :ref:`String<class_String>` name **)**
  137. Removes a sub-node.
  138. .. rst-class:: classref-item-separator
  139. ----
  140. .. _class_AnimationNodeBlendTree_method_rename_node:
  141. .. rst-class:: classref-method
  142. void **rename_node** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` new_name **)**
  143. Changes the name of a sub-node.
  144. .. rst-class:: classref-item-separator
  145. ----
  146. .. _class_AnimationNodeBlendTree_method_set_node_position:
  147. .. rst-class:: classref-method
  148. void **set_node_position** **(** :ref:`String<class_String>` name, :ref:`Vector2<class_Vector2>` position **)**
  149. Modifies the position of a sub-node.
  150. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  151. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  152. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  153. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`