Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Alex

Pages: [1]
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:

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.

Pages: [1]