Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: bogart on September 29, 2014, 11:58:16 AM

Title: UILabel Dynamic text box
Post by: bogart on September 29, 2014, 11:58:16 AM
So I have an NGUI label acting as a dynamic text box that pulls text from an xml. I can't seem to force the text box to always display text in the top left of the field. For example, if I have a long string of text, everything is fine, but if I have 1-3 lines of text, it then forces the text to be centered vertically. What am I doing wrong?
Title: Re: UILabel Dynamic text box
Post by: bogart on September 29, 2014, 12:55:24 PM
I wish I could also figure out why NGUI rasterizes text so badly compared to GUI text. It's similar to using photoshop versus illustrator with bitmap fonts versus vector. No matter what I do, I can't seem to get clean vector looking font with NGUI. Bummer.
Title: Re: UILabel Dynamic text box
Post by: ArenMook on September 30, 2014, 03:54:21 AM
Change the pivot to top left.

Don't use center-based pivot. If you use a center-based pivot, then dimensions must be dividable by two.

P.S. Dynamic fonts isn't NGUI. That's Unity.
Title: Re: UILabel Dynamic text box
Post by: bogart on September 30, 2014, 09:58:58 AM
OOOOHHHHHH, That's what those things do. Thanks for answering my newbie question sir!