Rewind Shake #64
Answered
by
KyryloKuzyk
wtmsuperman
asked this question in
FAQ
-
Shake don't have start value,how can I rewind a shake safely?
Is this the right way? And I have some sequences need to play and rewind,Could I use |
Beta Was this translation helpful? Give feedback.
Answered by
KyryloKuzyk
Apr 16, 2024
Replies: 1 comment
-
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();
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wtmsuperman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.