From 58f4984d607d89a07f1e44cdce99b17424864b4b Mon Sep 17 00:00:00 2001 From: kobewi Date: Mon, 25 Sep 2023 15:56:04 +0200 Subject: Add set_custom_interpolator() to PropertyTweener --- scene/animation/tween.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scene/animation/tween.h') diff --git a/scene/animation/tween.h b/scene/animation/tween.h index 10c7a272ef..b9be0afe6e 100644 --- a/scene/animation/tween.h +++ b/scene/animation/tween.h @@ -197,6 +197,7 @@ public: Ref as_relative(); Ref set_trans(Tween::TransitionType p_trans); Ref set_ease(Tween::EaseType p_ease); + Ref set_custom_interpolator(const Callable &p_method); Ref set_delay(double p_delay); void set_tween(const Ref &p_tween) override; @@ -222,6 +223,7 @@ private: double duration = 0; Tween::TransitionType trans_type = Tween::TRANS_MAX; // This is set inside set_tween(); Tween::EaseType ease_type = Tween::EASE_MAX; + Callable custom_method; double delay = 0; bool do_continue = true; -- cgit v1.2.3