Demigiant Forum
Unity Assets => DOTween & DOTween Pro => Topic started by: Culzean on July 02, 2015, 06:32:12 PM
-
I'm trying to control several TweenAnimation using the component system, but on starting one tween I want to make the other is cancelled. the behaviour as it stands seems have each tween complete. Does anyone have any more experience of this this?
Is there a way to talk to the Tweens by ids in more detail?
Thanks.
-
Hi,
Once you set a tween's id (via SetId), every static control operation accepts it as a parameter. For example:
// Pause all tweens with the given id
DOTween.Pause(myId);
// Kill all tweens with the given id
DOTween.Kill(myId);
// etc
-
That was simple, doh. Didn't release that I could use the static methods for the tweenAnimation component. Thanks!