Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: bmon3y on January 09, 2015, 11:39:03 AM

Title: Easy way to reset alpha?
Post by: bmon3y on January 09, 2015, 11:39:03 AM
After a TweenAlpha fadeout is there an easy way to reset the alpha to 1 without re-Tweening?
Title: Re: Easy way to reset alpha?
Post by: ArenMook on January 10, 2015, 12:39:11 PM
Change the shape of the curve in inspector. Instead of going from A to B, make it go from A to B then at the every end abruptly go back to A.
Title: Re: Easy way to reset alpha?
Post by: Nicki on January 10, 2015, 06:03:43 PM
Do you mean set the alpha of the widget, or make the Tweener be ready for a new go?

First is just taking the widget.alpha = 1;

Second, call myTweenerReference.ResetToBeginning().