Demigiant / dotween

A Unity C# animation engine. HOTween v2
http://dotween.demigiant.com
Other
2.34k stars 351 forks source link

Any way to make multiple tweens execute in an exactly order without sequence? #359

Open Jayatubi opened 4 years ago

Jayatubi commented 4 years ago

I have multiple tweens which might be create randomly one after another. I want to these tweens execute in the order which they created. For example:

Tween A created at frame 1; Tween B created at frame 10; Tween C created at frame 20;

However, the tween A may complete before frame 20 and then after the tween C was created it may be execute before tween B in the later update cycles. How could I make the later created tween always execute in the later order?

Demigiant commented 4 years ago

Ahoy,

Sequences don't need to have element in a sequence (I know, bad naming): you can overlap them with Insert and add tweens at the time you want.

Jayatubi commented 4 years ago

Sorry for the misleading title but what I want has nothing to do with the sequence.

I just want the isolated tweens execute one by one as the same order as I created team. However, it seems like the internal TweenManager intends to resuse the slot of the inactived tweens which may put a later created tween before the early created ones in the active tween array. This would lead the later created tween execute before early ones in the next update loop.

lordlycastle commented 4 years ago

@Jayatubi do you have recycle enabled?

And why can you not start subsequent tween OnComplete?