Support => NGUI 3 Support => Topic started by: Eskema on April 05, 2013, 10:29:31 AM
Title: Tween delay bug, fix inside
Post by: Eskema on April 05, 2013, 10:29:31 AM
Hi,
I've found a bug regarding the delay function of the tweens. Right now if you create a tween and set the delay value it works perfectly, BUT if you want to reset the tween to use it again the delay won't be called anymore.
Just a matter of modifying the UITweener.cs line 300 with this
And set the started to false to calculate the delay
Title: Re: Tween delay bug, fix inside
Post by: ArenMook on April 05, 2013, 11:43:12 AM
Thanks, I will add it in and see if I notice anything wrong.
Title: Re: Tween delay bug, fix inside
Post by: Eskema on April 05, 2013, 12:02:57 PM
In theory nothing wrong should happen, the only thing this does is to reset the calculation on the update method to take into consideration the delay, otherwise the delay will be used only the first time you use the tween.
If you just create and destroy tween on runtime there's no need for a fix, but if you use the same tween over and over like I do, then the reset() method won't restore or take into consideration the delay if you change it :)