123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/AnimationNodeOneShot.xml.
- .. _class_AnimationNodeOneShot:
- AnimationNodeOneShot
- ====================
- **Inherits:** :ref:`AnimationNode<class_AnimationNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
- Plays an animation once in :ref:`AnimationNodeBlendTree<class_AnimationNodeBlendTree>`.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- 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.
- .. rst-class:: classref-introduction-group
- Tutorials
- ---------
- - :doc:`AnimationTree <../tutorials/animation/animation_tree>`
- - `Third Person Shooter Demo <https://godotengine.org/asset-library/asset/678>`__
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`autorestart<class_AnimationNodeOneShot_property_autorestart>` | ``false`` |
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- | :ref:`float<class_float>` | :ref:`autorestart_delay<class_AnimationNodeOneShot_property_autorestart_delay>` | ``1.0`` |
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- | :ref:`float<class_float>` | :ref:`autorestart_random_delay<class_AnimationNodeOneShot_property_autorestart_random_delay>` | ``0.0`` |
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- | :ref:`float<class_float>` | :ref:`fadein_time<class_AnimationNodeOneShot_property_fadein_time>` | ``0.1`` |
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- | :ref:`float<class_float>` | :ref:`fadeout_time<class_AnimationNodeOneShot_property_fadeout_time>` | ``0.1`` |
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- | :ref:`MixMode<enum_AnimationNodeOneShot_MixMode>` | :ref:`mix_mode<class_AnimationNodeOneShot_property_mix_mode>` | ``0`` |
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`sync<class_AnimationNodeOneShot_property_sync>` | ``false`` |
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Enumerations
- ------------
- .. _enum_AnimationNodeOneShot_MixMode:
- .. rst-class:: classref-enumeration
- enum **MixMode**:
- .. _class_AnimationNodeOneShot_constant_MIX_MODE_BLEND:
- .. rst-class:: classref-enumeration-constant
- :ref:`MixMode<enum_AnimationNodeOneShot_MixMode>` **MIX_MODE_BLEND** = ``0``
- .. _class_AnimationNodeOneShot_constant_MIX_MODE_ADD:
- .. rst-class:: classref-enumeration-constant
- :ref:`MixMode<enum_AnimationNodeOneShot_MixMode>` **MIX_MODE_ADD** = ``1``
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_AnimationNodeOneShot_property_autorestart:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **autorestart** = ``false``
- .. rst-class:: classref-property-setget
- - void **set_autorestart** **(** :ref:`bool<class_bool>` value **)**
- - :ref:`bool<class_bool>` **has_autorestart** **(** **)**
- If ``true``, the sub-animation will restart automatically after finishing.
- .. rst-class:: classref-item-separator
- ----
- .. _class_AnimationNodeOneShot_property_autorestart_delay:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **autorestart_delay** = ``1.0``
- .. rst-class:: classref-property-setget
- - void **set_autorestart_delay** **(** :ref:`float<class_float>` value **)**
- - :ref:`float<class_float>` **get_autorestart_delay** **(** **)**
- The delay after which the automatic restart is triggered, in seconds.
- .. rst-class:: classref-item-separator
- ----
- .. _class_AnimationNodeOneShot_property_autorestart_random_delay:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **autorestart_random_delay** = ``0.0``
- .. rst-class:: classref-property-setget
- - void **set_autorestart_random_delay** **(** :ref:`float<class_float>` value **)**
- - :ref:`float<class_float>` **get_autorestart_random_delay** **(** **)**
- 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>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_AnimationNodeOneShot_property_fadein_time:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **fadein_time** = ``0.1``
- .. rst-class:: classref-property-setget
- - void **set_fadein_time** **(** :ref:`float<class_float>` value **)**
- - :ref:`float<class_float>` **get_fadein_time** **(** **)**
- .. container:: contribute
- There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
- .. rst-class:: classref-item-separator
- ----
- .. _class_AnimationNodeOneShot_property_fadeout_time:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **fadeout_time** = ``0.1``
- .. rst-class:: classref-property-setget
- - void **set_fadeout_time** **(** :ref:`float<class_float>` value **)**
- - :ref:`float<class_float>` **get_fadeout_time** **(** **)**
- .. container:: contribute
- There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
- .. rst-class:: classref-item-separator
- ----
- .. _class_AnimationNodeOneShot_property_mix_mode:
- .. rst-class:: classref-property
- :ref:`MixMode<enum_AnimationNodeOneShot_MixMode>` **mix_mode** = ``0``
- .. rst-class:: classref-property-setget
- - void **set_mix_mode** **(** :ref:`MixMode<enum_AnimationNodeOneShot_MixMode>` value **)**
- - :ref:`MixMode<enum_AnimationNodeOneShot_MixMode>` **get_mix_mode** **(** **)**
- .. container:: contribute
- There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
- .. rst-class:: classref-item-separator
- ----
- .. _class_AnimationNodeOneShot_property_sync:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **sync** = ``false``
- .. rst-class:: classref-property-setget
- - void **set_use_sync** **(** :ref:`bool<class_bool>` value **)**
- - :ref:`bool<class_bool>` **is_using_sync** **(** **)**
- .. container:: contribute
- There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
|