class_animationtree.rst 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Properties
  13. ----------
  14. +----------------------------------------------------------------------+--------------------------------------------------------------------------+
  15. | :ref:`bool<class_bool>` | :ref:`active<class_AnimationTree_property_active>` |
  16. +----------------------------------------------------------------------+--------------------------------------------------------------------------+
  17. | :ref:`NodePath<class_NodePath>` | :ref:`anim_player<class_AnimationTree_property_anim_player>` |
  18. +----------------------------------------------------------------------+--------------------------------------------------------------------------+
  19. | :ref:`AnimationProcessMode<enum_AnimationTree_AnimationProcessMode>` | :ref:`process_mode<class_AnimationTree_property_process_mode>` |
  20. +----------------------------------------------------------------------+--------------------------------------------------------------------------+
  21. | :ref:`NodePath<class_NodePath>` | :ref:`root_motion_track<class_AnimationTree_property_root_motion_track>` |
  22. +----------------------------------------------------------------------+--------------------------------------------------------------------------+
  23. | :ref:`AnimationNode<class_AnimationNode>` | :ref:`tree_root<class_AnimationTree_property_tree_root>` |
  24. +----------------------------------------------------------------------+--------------------------------------------------------------------------+
  25. Methods
  26. -------
  27. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | void | :ref:`advance<class_AnimationTree_method_advance>` **(** :ref:`float<class_float>` delta **)** |
  29. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | :ref:`Transform<class_Transform>` | :ref:`get_root_motion_transform<class_AnimationTree_method_get_root_motion_transform>` **(** **)** const |
  31. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | void | :ref:`rename_parameter<class_AnimationTree_method_rename_parameter>` **(** :ref:`String<class_String>` old_name, :ref:`String<class_String>` new_name **)** |
  33. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. Enumerations
  35. ------------
  36. .. _enum_AnimationTree_AnimationProcessMode:
  37. .. _class_AnimationTree_constant_ANIMATION_PROCESS_PHYSICS:
  38. .. _class_AnimationTree_constant_ANIMATION_PROCESS_IDLE:
  39. .. _class_AnimationTree_constant_ANIMATION_PROCESS_MANUAL:
  40. enum **AnimationProcessMode**:
  41. - **ANIMATION_PROCESS_PHYSICS** = **0**
  42. - **ANIMATION_PROCESS_IDLE** = **1**
  43. - **ANIMATION_PROCESS_MANUAL** = **2**
  44. Tutorials
  45. ---------
  46. - :doc:`../tutorials/animation/animation_tree`
  47. - `https://github.com/godotengine/tps-demo <https://github.com/godotengine/tps-demo>`_
  48. Property Descriptions
  49. ---------------------
  50. .. _class_AnimationTree_property_active:
  51. - :ref:`bool<class_bool>` **active**
  52. +----------+-------------------+
  53. | *Setter* | set_active(value) |
  54. +----------+-------------------+
  55. | *Getter* | is_active() |
  56. +----------+-------------------+
  57. ----
  58. .. _class_AnimationTree_property_anim_player:
  59. - :ref:`NodePath<class_NodePath>` **anim_player**
  60. +----------+-----------------------------+
  61. | *Setter* | set_animation_player(value) |
  62. +----------+-----------------------------+
  63. | *Getter* | get_animation_player() |
  64. +----------+-----------------------------+
  65. ----
  66. .. _class_AnimationTree_property_process_mode:
  67. - :ref:`AnimationProcessMode<enum_AnimationTree_AnimationProcessMode>` **process_mode**
  68. +----------+-------------------------+
  69. | *Setter* | set_process_mode(value) |
  70. +----------+-------------------------+
  71. | *Getter* | get_process_mode() |
  72. +----------+-------------------------+
  73. ----
  74. .. _class_AnimationTree_property_root_motion_track:
  75. - :ref:`NodePath<class_NodePath>` **root_motion_track**
  76. +----------+------------------------------+
  77. | *Setter* | set_root_motion_track(value) |
  78. +----------+------------------------------+
  79. | *Getter* | get_root_motion_track() |
  80. +----------+------------------------------+
  81. ----
  82. .. _class_AnimationTree_property_tree_root:
  83. - :ref:`AnimationNode<class_AnimationNode>` **tree_root**
  84. +----------+----------------------+
  85. | *Setter* | set_tree_root(value) |
  86. +----------+----------------------+
  87. | *Getter* | get_tree_root() |
  88. +----------+----------------------+
  89. Method Descriptions
  90. -------------------
  91. .. _class_AnimationTree_method_advance:
  92. - void **advance** **(** :ref:`float<class_float>` delta **)**
  93. ----
  94. .. _class_AnimationTree_method_get_root_motion_transform:
  95. - :ref:`Transform<class_Transform>` **get_root_motion_transform** **(** **)** const
  96. ----
  97. .. _class_AnimationTree_method_rename_parameter:
  98. - void **rename_parameter** **(** :ref:`String<class_String>` old_name, :ref:`String<class_String>` new_name **)**