dotween icon indicating copy to clipboard operation
dotween copied to clipboard

OnStart ignores SetDelay

Open ThomLaurent opened this issue 4 years ago • 1 comments

Hi, I've got DOTween v1.2.420 (free version) and the OnStart callback is triggered when the tween starts instead of after the delay I've put.

The documentation says about OnStart callback:

Sets a callback that will be fired once when the tween starts (meaning when the tween is set in a playing state the first time, after any eventual delay).

But in this code "Start" is logged right after "Call" without waiting 1 second:

Debug.Log("Call");
transform.DOLocalJump(Vector3.zero, 2f, 1, 1f)
         .SetDelay(1f)
         .OnStart(() => Debug.Log("Start"));

ThomLaurent avatar Nov 28 '21 12:11 ThomLaurent

I have the same issue.

isitsou avatar May 31 '23 14:05 isitsou