Author Topic: UILabel dynamic font by code  (Read 1779 times)

elvess

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 44
    • View Profile
UILabel dynamic font by code
« on: June 09, 2015, 09:00:19 AM »
Hello.
We want to change bitmapfont in our uilabels to dynamic. Is there a way to set it buy code? because i cant find any property in uilabel obj?

Thank U,
Paul.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: UILabel dynamic font by code
« Reply #1 on: June 09, 2015, 03:49:59 PM »
Set the .font property to the font your want.
http://tasharen.com/ngui/docs/class_u_i_label.html
(that may be outdated, check the UILabel.cs for the specific property to set)