Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnStart ignores SetDelay #531

Open
ThomLaurent opened this issue Nov 28, 2021 · 1 comment
Open

OnStart ignores SetDelay #531

ThomLaurent opened this issue Nov 28, 2021 · 1 comment

Comments

@ThomLaurent
Copy link

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"));
@isitsou
Copy link

isitsou commented May 31, 2023

I have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants