Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Nerosam on December 15, 2013, 10:18:42 AM

Title: Animate gradient on labels?
Post by: Nerosam on December 15, 2013, 10:18:42 AM
Is it possible to animate the gradient on lables? All I see in animation panel are private variables (MGradient Bottom, etc) which do not seem to work via animation.

Thanks
Title: Re: Animate gradient on labels?
Post by: ArenMook on December 15, 2013, 10:59:42 AM
You need to use intermediate scripts such as AnimatedAlpha and AnimatedColor.
Title: Re: Animate gradient on labels?
Post by: Nerosam on December 28, 2013, 09:57:18 AM
Animated color only animates the color on the widget which has no effect on the gradient. Im guessing I will need some kind of intermediate script which accesses the gradient values?
Title: Re: Animate gradient on labels?
Post by: ArenMook on December 28, 2013, 04:25:06 PM
Yup. Something similar. AnimatedColor is a tiny script. Copy/paste it, rename it, and make it adjust the gradient colors instead.