class_animationnodeoneshot.rst 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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/AnimationNodeOneShot.xml.
  6. .. _class_AnimationNodeOneShot:
  7. AnimationNodeOneShot
  8. ====================
  9. **Inherits:** :ref:`AnimationNode<class_AnimationNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. Plays an animation once in :ref:`AnimationNodeBlendTree<class_AnimationNodeBlendTree>`.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. A resource to add to an :ref:`AnimationNodeBlendTree<class_AnimationNodeBlendTree>`. This node will execute a sub-animation and return once it finishes. Blend times for fading in and out can be customized, as well as filters.
  15. .. rst-class:: classref-introduction-group
  16. Tutorials
  17. ---------
  18. - :doc:`AnimationTree <../tutorials/animation/animation_tree>`
  19. - `Third Person Shooter Demo <https://godotengine.org/asset-library/asset/678>`__
  20. .. rst-class:: classref-reftable-group
  21. Properties
  22. ----------
  23. .. table::
  24. :widths: auto
  25. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  26. | :ref:`bool<class_bool>` | :ref:`autorestart<class_AnimationNodeOneShot_property_autorestart>` | ``false`` |
  27. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  28. | :ref:`float<class_float>` | :ref:`autorestart_delay<class_AnimationNodeOneShot_property_autorestart_delay>` | ``1.0`` |
  29. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  30. | :ref:`float<class_float>` | :ref:`autorestart_random_delay<class_AnimationNodeOneShot_property_autorestart_random_delay>` | ``0.0`` |
  31. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  32. | :ref:`float<class_float>` | :ref:`fadein_time<class_AnimationNodeOneShot_property_fadein_time>` | ``0.1`` |
  33. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  34. | :ref:`float<class_float>` | :ref:`fadeout_time<class_AnimationNodeOneShot_property_fadeout_time>` | ``0.1`` |
  35. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  36. | :ref:`MixMode<enum_AnimationNodeOneShot_MixMode>` | :ref:`mix_mode<class_AnimationNodeOneShot_property_mix_mode>` | ``0`` |
  37. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  38. | :ref:`bool<class_bool>` | :ref:`sync<class_AnimationNodeOneShot_property_sync>` | ``false`` |
  39. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  40. .. rst-class:: classref-section-separator
  41. ----
  42. .. rst-class:: classref-descriptions-group
  43. Enumerations
  44. ------------
  45. .. _enum_AnimationNodeOneShot_MixMode:
  46. .. rst-class:: classref-enumeration
  47. enum **MixMode**:
  48. .. _class_AnimationNodeOneShot_constant_MIX_MODE_BLEND:
  49. .. rst-class:: classref-enumeration-constant
  50. :ref:`MixMode<enum_AnimationNodeOneShot_MixMode>` **MIX_MODE_BLEND** = ``0``
  51. .. _class_AnimationNodeOneShot_constant_MIX_MODE_ADD:
  52. .. rst-class:: classref-enumeration-constant
  53. :ref:`MixMode<enum_AnimationNodeOneShot_MixMode>` **MIX_MODE_ADD** = ``1``
  54. .. rst-class:: classref-section-separator
  55. ----
  56. .. rst-class:: classref-descriptions-group
  57. Property Descriptions
  58. ---------------------
  59. .. _class_AnimationNodeOneShot_property_autorestart:
  60. .. rst-class:: classref-property
  61. :ref:`bool<class_bool>` **autorestart** = ``false``
  62. .. rst-class:: classref-property-setget
  63. - void **set_autorestart** **(** :ref:`bool<class_bool>` value **)**
  64. - :ref:`bool<class_bool>` **has_autorestart** **(** **)**
  65. If ``true``, the sub-animation will restart automatically after finishing.
  66. .. rst-class:: classref-item-separator
  67. ----
  68. .. _class_AnimationNodeOneShot_property_autorestart_delay:
  69. .. rst-class:: classref-property
  70. :ref:`float<class_float>` **autorestart_delay** = ``1.0``
  71. .. rst-class:: classref-property-setget
  72. - void **set_autorestart_delay** **(** :ref:`float<class_float>` value **)**
  73. - :ref:`float<class_float>` **get_autorestart_delay** **(** **)**
  74. The delay after which the automatic restart is triggered, in seconds.
  75. .. rst-class:: classref-item-separator
  76. ----
  77. .. _class_AnimationNodeOneShot_property_autorestart_random_delay:
  78. .. rst-class:: classref-property
  79. :ref:`float<class_float>` **autorestart_random_delay** = ``0.0``
  80. .. rst-class:: classref-property-setget
  81. - void **set_autorestart_random_delay** **(** :ref:`float<class_float>` value **)**
  82. - :ref:`float<class_float>` **get_autorestart_random_delay** **(** **)**
  83. If :ref:`autorestart<class_AnimationNodeOneShot_property_autorestart>` is ``true``, a random additional delay (in seconds) between 0 and this value will be added to :ref:`autorestart_delay<class_AnimationNodeOneShot_property_autorestart_delay>`.
  84. .. rst-class:: classref-item-separator
  85. ----
  86. .. _class_AnimationNodeOneShot_property_fadein_time:
  87. .. rst-class:: classref-property
  88. :ref:`float<class_float>` **fadein_time** = ``0.1``
  89. .. rst-class:: classref-property-setget
  90. - void **set_fadein_time** **(** :ref:`float<class_float>` value **)**
  91. - :ref:`float<class_float>` **get_fadein_time** **(** **)**
  92. .. container:: contribute
  93. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  94. .. rst-class:: classref-item-separator
  95. ----
  96. .. _class_AnimationNodeOneShot_property_fadeout_time:
  97. .. rst-class:: classref-property
  98. :ref:`float<class_float>` **fadeout_time** = ``0.1``
  99. .. rst-class:: classref-property-setget
  100. - void **set_fadeout_time** **(** :ref:`float<class_float>` value **)**
  101. - :ref:`float<class_float>` **get_fadeout_time** **(** **)**
  102. .. container:: contribute
  103. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  104. .. rst-class:: classref-item-separator
  105. ----
  106. .. _class_AnimationNodeOneShot_property_mix_mode:
  107. .. rst-class:: classref-property
  108. :ref:`MixMode<enum_AnimationNodeOneShot_MixMode>` **mix_mode** = ``0``
  109. .. rst-class:: classref-property-setget
  110. - void **set_mix_mode** **(** :ref:`MixMode<enum_AnimationNodeOneShot_MixMode>` value **)**
  111. - :ref:`MixMode<enum_AnimationNodeOneShot_MixMode>` **get_mix_mode** **(** **)**
  112. .. container:: contribute
  113. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  114. .. rst-class:: classref-item-separator
  115. ----
  116. .. _class_AnimationNodeOneShot_property_sync:
  117. .. rst-class:: classref-property
  118. :ref:`bool<class_bool>` **sync** = ``false``
  119. .. rst-class:: classref-property-setget
  120. - void **set_use_sync** **(** :ref:`bool<class_bool>` value **)**
  121. - :ref:`bool<class_bool>` **is_using_sync** **(** **)**
  122. .. container:: contribute
  123. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  124. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  125. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  126. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  127. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`