Author Topic: UILabel Dynamic text box  (Read 3554 times)

bogart

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
UILabel Dynamic text box
« 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?

bogart

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: UILabel Dynamic text box
« Reply #1 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel Dynamic text box
« Reply #2 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.

bogart

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: UILabel Dynamic text box
« Reply #3 on: September 30, 2014, 09:58:58 AM »
OOOOHHHHHH, That's what those things do. Thanks for answering my newbie question sir!