Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: SirGive on July 14, 2013, 10:34:13 PM

Title: Reset tween on enable?
Post by: SirGive on July 14, 2013, 10:34:13 PM
So I had a scale tween on an object that works the first time it is enabled. Subsequent times that said object is enabled, the tween no longer works. I have also resorted to re-enabling the tween through code, but still no luck in restarting the tween. Here is a very basic example:

(http://www.tasharen.com/forum/index.php?action=dlattach;topic=5004.0;attach=2270;image)

Did I miss something super simple?
Title: Re: Reset tween on enable?
Post by: SirGive on July 14, 2013, 11:10:00 PM
Ahh I guess I should have poked around in the methods first.

So apparently the tween needs to be .Reset()

Are there any GUI ways to do this?
Title: Re: Reset tween on enable?
Post by: ArenMook on July 15, 2013, 06:54:31 AM
You generally should trigger tweens through code using their Begin() method. There is no "reset" functionality for the tweens in inspector.