: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/MethodTweener.xml. .. _class_MethodTweener: MethodTweener ============= **Inherits:** :ref:`Tweener` **<** :ref:`Reference` **<** :ref:`Object` Interpolates an abstract value and supplies it to a method called over time. .. rst-class:: classref-introduction-group Description ----------- **MethodTweener** is similar to a combination of :ref:`CallbackTweener` and :ref:`PropertyTweener`. It calls a method providing an interpolated value as a parameter. See :ref:`SceneTreeTween.tween_method` for more usage information. \ **Note:** :ref:`SceneTreeTween.tween_method` is the only correct way to create **MethodTweener**. Any **MethodTweener** created manually will not function correctly. .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | :ref:`MethodTweener` | :ref:`set_delay` **(** :ref:`float` delay **)** | +-------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | :ref:`MethodTweener` | :ref:`set_ease` **(** :ref:`EaseType` ease **)** | +-------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | :ref:`MethodTweener` | :ref:`set_trans` **(** :ref:`TransitionType` trans **)** | +-------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_MethodTweener_method_set_delay: .. rst-class:: classref-method :ref:`MethodTweener` **set_delay** **(** :ref:`float` delay **)** Sets the time in seconds after which the **MethodTweener** will start interpolating. By default there's no delay. .. rst-class:: classref-item-separator ---- .. _class_MethodTweener_method_set_ease: .. rst-class:: classref-method :ref:`MethodTweener` **set_ease** **(** :ref:`EaseType` ease **)** Sets the type of used easing from :ref:`EaseType`. If not set, the default easing is used from the :ref:`SceneTreeTween` that contains this Tweener. .. rst-class:: classref-item-separator ---- .. _class_MethodTweener_method_set_trans: .. rst-class:: classref-method :ref:`MethodTweener` **set_trans** **(** :ref:`TransitionType` trans **)** Sets the type of used transition from :ref:`TransitionType`. If not set, the default transition is used from the :ref:`SceneTreeTween` that contains this Tweener. .. |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.)`