123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/AnimationNodeTimeSeek.xml.
- .. _class_AnimationNodeTimeSeek:
- AnimationNodeTimeSeek
- =====================
- **Inherits:** :ref:`AnimationNode<class_AnimationNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
- A time-seeking animation node used in :ref:`AnimationTree<class_AnimationTree>`.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- This animation node can be used to cause a seek command to happen to any sub-children of the animation graph. Use to play an :ref:`Animation<class_Animation>` from the start or a certain playback position inside the :ref:`AnimationNodeBlendTree<class_AnimationNodeBlendTree>`.
- After setting the time and changing the animation playback, the time seek node automatically goes into sleep mode on the next process frame by setting its ``seek_request`` value to ``-1.0``.
- .. tabs::
- .. code-tab:: gdscript
- # Play child animation from the start.
- animation_tree.set("parameters/TimeSeek/seek_request", 0.0)
- # Alternative syntax (same result as above).
- animation_tree["parameters/TimeSeek/seek_request"] = 0.0
-
- # Play child animation from 12 second timestamp.
- animation_tree.set("parameters/TimeSeek/seek_request", 12.0)
- # Alternative syntax (same result as above).
- animation_tree["parameters/TimeSeek/seek_request"] = 12.0
- .. code-tab:: csharp
- // Play child animation from the start.
- animationTree.Set("parameters/TimeSeek/seek_request", 0.0);
-
- // Play child animation from 12 second timestamp.
- animationTree.Set("parameters/TimeSeek/seek_request", 12.0);
- .. rst-class:: classref-introduction-group
- Tutorials
- ---------
- - :doc:`Using AnimationTree <../tutorials/animation/animation_tree>`
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +-------------------------+------------------------------------------------------------------------------+----------+
- | :ref:`bool<class_bool>` | :ref:`explicit_elapse<class_AnimationNodeTimeSeek_property_explicit_elapse>` | ``true`` |
- +-------------------------+------------------------------------------------------------------------------+----------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_AnimationNodeTimeSeek_property_explicit_elapse:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **explicit_elapse** = ``true`` :ref:`🔗<class_AnimationNodeTimeSeek_property_explicit_elapse>`
- .. rst-class:: classref-property-setget
- - |void| **set_explicit_elapse**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **is_explicit_elapse**\ (\ )
- If ``true``, some processes are executed to handle keys between seeks, such as calculating root motion and finding the nearest discrete key.
- .. |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.)`
- .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
- .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
- .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
- .. |void| replace:: :abbr:`void (No return value.)`
|