class_animationtree.rst 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the AnimationTree.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_AnimationTree:
  6. AnimationTree
  7. =============
  8. **Inherits:** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. Tutorials
  10. ---------
  11. - :doc:`../tutorials/animation/animation_tree`
  12. - `https://github.com/godotengine/tps-demo <https://github.com/godotengine/tps-demo>`_
  13. Properties
  14. ----------
  15. +----------------------------------------------------------------------+--------------------------------------------------------------------------+------------------+
  16. | :ref:`bool<class_bool>` | :ref:`active<class_AnimationTree_property_active>` | ``false`` |
  17. +----------------------------------------------------------------------+--------------------------------------------------------------------------+------------------+
  18. | :ref:`NodePath<class_NodePath>` | :ref:`anim_player<class_AnimationTree_property_anim_player>` | ``NodePath("")`` |
  19. +----------------------------------------------------------------------+--------------------------------------------------------------------------+------------------+
  20. | :ref:`AnimationProcessMode<enum_AnimationTree_AnimationProcessMode>` | :ref:`process_mode<class_AnimationTree_property_process_mode>` | ``1`` |
  21. +----------------------------------------------------------------------+--------------------------------------------------------------------------+------------------+
  22. | :ref:`NodePath<class_NodePath>` | :ref:`root_motion_track<class_AnimationTree_property_root_motion_track>` | ``NodePath("")`` |
  23. +----------------------------------------------------------------------+--------------------------------------------------------------------------+------------------+
  24. | :ref:`AnimationNode<class_AnimationNode>` | :ref:`tree_root<class_AnimationTree_property_tree_root>` | |
  25. +----------------------------------------------------------------------+--------------------------------------------------------------------------+------------------+
  26. Methods
  27. -------
  28. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | void | :ref:`advance<class_AnimationTree_method_advance>` **(** :ref:`float<class_float>` delta **)** |
  30. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`Transform<class_Transform>` | :ref:`get_root_motion_transform<class_AnimationTree_method_get_root_motion_transform>` **(** **)** const |
  32. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | void | :ref:`rename_parameter<class_AnimationTree_method_rename_parameter>` **(** :ref:`String<class_String>` old_name, :ref:`String<class_String>` new_name **)** |
  34. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. Enumerations
  36. ------------
  37. .. _enum_AnimationTree_AnimationProcessMode:
  38. .. _class_AnimationTree_constant_ANIMATION_PROCESS_PHYSICS:
  39. .. _class_AnimationTree_constant_ANIMATION_PROCESS_IDLE:
  40. .. _class_AnimationTree_constant_ANIMATION_PROCESS_MANUAL:
  41. enum **AnimationProcessMode**:
  42. - **ANIMATION_PROCESS_PHYSICS** = **0**
  43. - **ANIMATION_PROCESS_IDLE** = **1**
  44. - **ANIMATION_PROCESS_MANUAL** = **2**
  45. Property Descriptions
  46. ---------------------
  47. .. _class_AnimationTree_property_active:
  48. - :ref:`bool<class_bool>` **active**
  49. +-----------+-------------------+
  50. | *Default* | ``false`` |
  51. +-----------+-------------------+
  52. | *Setter* | set_active(value) |
  53. +-----------+-------------------+
  54. | *Getter* | is_active() |
  55. +-----------+-------------------+
  56. ----
  57. .. _class_AnimationTree_property_anim_player:
  58. - :ref:`NodePath<class_NodePath>` **anim_player**
  59. +-----------+-----------------------------+
  60. | *Default* | ``NodePath("")`` |
  61. +-----------+-----------------------------+
  62. | *Setter* | set_animation_player(value) |
  63. +-----------+-----------------------------+
  64. | *Getter* | get_animation_player() |
  65. +-----------+-----------------------------+
  66. ----
  67. .. _class_AnimationTree_property_process_mode:
  68. - :ref:`AnimationProcessMode<enum_AnimationTree_AnimationProcessMode>` **process_mode**
  69. +-----------+-------------------------+
  70. | *Default* | ``1`` |
  71. +-----------+-------------------------+
  72. | *Setter* | set_process_mode(value) |
  73. +-----------+-------------------------+
  74. | *Getter* | get_process_mode() |
  75. +-----------+-------------------------+
  76. ----
  77. .. _class_AnimationTree_property_root_motion_track:
  78. - :ref:`NodePath<class_NodePath>` **root_motion_track**
  79. +-----------+------------------------------+
  80. | *Default* | ``NodePath("")`` |
  81. +-----------+------------------------------+
  82. | *Setter* | set_root_motion_track(value) |
  83. +-----------+------------------------------+
  84. | *Getter* | get_root_motion_track() |
  85. +-----------+------------------------------+
  86. ----
  87. .. _class_AnimationTree_property_tree_root:
  88. - :ref:`AnimationNode<class_AnimationNode>` **tree_root**
  89. +----------+----------------------+
  90. | *Setter* | set_tree_root(value) |
  91. +----------+----------------------+
  92. | *Getter* | get_tree_root() |
  93. +----------+----------------------+
  94. Method Descriptions
  95. -------------------
  96. .. _class_AnimationTree_method_advance:
  97. - void **advance** **(** :ref:`float<class_float>` delta **)**
  98. ----
  99. .. _class_AnimationTree_method_get_root_motion_transform:
  100. - :ref:`Transform<class_Transform>` **get_root_motion_transform** **(** **)** const
  101. ----
  102. .. _class_AnimationTree_method_rename_parameter:
  103. - void **rename_parameter** **(** :ref:`String<class_String>` old_name, :ref:`String<class_String>` new_name **)**