Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: AGB on December 28, 2013, 05:16:25 AM
-
Hello!
I was wondering, why dont you set spacingX propery from int->float
(Same in NguiText - remove RoundToInt: )
NGUIText.spacingY = Mathf.RoundToInt(mScale * mSpacingY);
With float properties it is possible create fancy text tween animations, like here: steamdefense.com (From main menu go to Options->Cast, when it is showing "Steam Defense" name)
Attaching TweenSpacing script
-
You can still do this. Don't animate the spacing value directly. Animate some local value that will then RoundToInt and set the spacing value. If floats are used, printed text won't be pixel-perfect. It will be blurry.
-
Even with local value - the problem stays, if i want a slow spacingX animation. If using RoundToInt - there are very visible steps, it special, when spacingX has big value. The only way to get slow animation - removing this RoundToInt. The text really is a bit blurry during animation, but animation looks great.
Have captured animation video (sorry for bad quality) - is it possible to make something like this without float values?
http://www.youtube.com/watch?v=zdVVs9rfDJ4#t=20
-
Hmm... interesting. I'll give it some thought.