Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: vidjogamer on April 13, 2014, 06:25:24 AM

Title: Animated Labels
Post by: vidjogamer on April 13, 2014, 06:25:24 AM
Is it possible to animated individual letters in a label?
Title: Re: Animated Labels
Post by: ArenMook on April 13, 2014, 06:37:00 AM
If you derive from UILabel and change its OnFill function you can do whatever you want.
Title: Re: Animated Labels
Post by: vidjogamer on April 13, 2014, 09:40:36 AM
Thank you Aren. Does OnFill get called every frame?
Title: Re: Animated Labels
Post by: ArenMook on April 14, 2014, 02:52:43 AM
Nope, it gets called when the widget needs to rebuild its geometry, which happens when the draw call needs to change. UIWidget.MarkAsChanged() will mark the widget as needing to be rebuilt.