Support => NGUI 3 Support => Topic started by: ngui on February 27, 2014, 01:13:57 PM
Title: Tween Sequences, Chaining and Looping OnFinished EventDelegates
Post by: ngui on February 27, 2014, 01:13:57 PM
I've noticed that when chaining OnFinished event delegates, that eventually loop back and replay. The delegate persist and will be performed at unwanted times or not in the order given.
What is the best way to create a sequence of tweens, that keeps its order?
Title: Re: Tween Sequences, Chaining and Looping OnFinished EventDelegates
Post by: ArenMook on February 27, 2014, 04:54:25 PM
For anything more complex than a transition from A to B, I strongly advise you to use an animation instead. Tweens are for simple things. The ability to chain them is neat, but ultimately limited.
Title: Re: Tween Sequences, Chaining and Looping OnFinished EventDelegates
Post by: ngui on February 27, 2014, 07:27:13 PM
Thanks, so is there a way to remove the OnFinished delegate after use (for example from within the delegated method after its called)?
Title: Re: Tween Sequences, Chaining and Looping OnFinished EventDelegates
Post by: ArenMook on February 28, 2014, 07:35:16 PM
If you add delegates with the one shot parameter, they will remove themselves.