Author Topic: Align Text on the Bottom of UILabel  (Read 3378 times)

GriffinStudios

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 0
    • View Profile
Align Text on the Bottom of UILabel
« on: January 12, 2015, 11:10:30 PM »
Hi,

With the UILabel script I can obviously Left-align, right-align, and center, but I can't figure how to bottom align it. Meaning that the bottom of the text touches the bottom of the UILabel. I would think that changing the pivot to bottom would have that effect, but no such luck.

Any ideas?

devomage

  • Sr. Member
  • ****
  • Thank You
  • -Given: 7
  • -Receive: 67
  • Posts: 250
    • View Profile
Re: Align Text on the Bottom of UILabel
« Reply #1 on: January 13, 2015, 02:19:01 AM »
Hi,

With the UILabel script I can obviously Left-align, right-align, and center, but I can't figure how to bottom align it. Meaning that the bottom of the text touches the bottom of the UILabel. I would think that changing the pivot to bottom would have that effect, but no such luck.

Any ideas?

the font size must be a decent amount smaller than the height of the widget.

if that doesnt help, check your anchors.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Align Text on the Bottom of UILabel
« Reply #2 on: January 13, 2015, 03:16:39 PM »
Pretty much what devomage said. Pivot set to bottom, bottom-left or bottom-right will make the text start at the bottom, unless you have a newline in there.