Demigiant Forum
Unity Assets => DOTween & DOTween Pro => Topic started by: Thenamelessone on June 29, 2015, 08:21:37 PM
-
Hey!
Just wondering how do I control the pause when using incremental looptype. So say I am rotating 90 degrees each increment.
It takes 2 seconds to rotate 90 degrees. How do I say... pause 5 seconds then go to the next 90 degree increment.
Thanks!
-
Hi!
If you want a pause to happen after each loop run, you should use Sequences, like this:
DOTween.Sequence()
.Append(myTransform.DORotate(new Vector3(0, 90, 0), 2))
.AppendInterval(5)
.SetLoops(-1, LoopType.Incremental);
Cheers!
-
Thanks! I love your product :)
-
I'm happy about that! :)