dotween
dotween copied to clipboard
OnStart ignores SetDelay
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"));
I have the same issue.