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.


Messages - Alex

Pages: [1]
1
DOTween & DOTween Pro / Re: Create a paused sequence
« on: December 01, 2015, 05:49:58 PM »
Hey, thanks for the fast reply. Good to know this is a common approach.

It is a bigger project and I might have overseen something. In a small test project it actually worked now as expected.
Thanks =)

2
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]