1
DOTween & DOTween Pro / Create a paused sequence
« on: December 01, 2015, 03:54:10 PM »
Hi, for a while I was doing this to create a paused sequence, which I start later and restart to use it again:
Is something wrong with that approach? I like to reuse the sequence, because I use it for scaling the same object, and I like to go back to its original scale before playing the tween again, this is why I have the Restart().
For some reason it does not work anymore... after calling Pause() the tween starts playing anyway.
Code: [Select]
_sequence = DOTween.Sequence()
.SetAutoKill( false )
.Append( DOTween.To( ... ) )
.Pause();
// later....
_sequence.Restart();
// even later after it was finished
_sequence.Restart();
Is something wrong with that approach? I like to reuse the sequence, because I use it for scaling the same object, and I like to go back to its original scale before playing the tween again, this is why I have the Restart().
For some reason it does not work anymore... after calling Pause() the tween starts playing anyway.