Skip to content

Rewind Shake #64

Answered by KyryloKuzyk
wtmsuperman asked this question in FAQ
Discussion options

You must be logged in to vote

Hey, sorry for the late reply.

Yes, setting progress = 0f, then calling Stop() will rewind any tween to the initial value without triggering OnComplete() callback. And yes, you can do the same thing for Sequence.

public static void RewindAndStop(Tween tween) {
    tween.progress = 0f;
    tween.Stop();
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wtmsuperman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
2 participants