Author Topic: Get Relative size UIWidget  (Read 1400 times)

alexeyshevchenko

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 12
    • View Profile
Get Relative size UIWidget
« on: June 25, 2014, 11:48:02 AM »
I'm trying to calculate the size of a Label with NGUIMath.CalculateRelativeWidgetBounds, but this only works if CalculateRelativeWidgetBounds used on next frame.

I'm looking for a way to get the size of a Label in the current frame immediately after I change it.

PoN

  • Full Member
  • ***
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 111
    • View Profile
Re: Get Relative size UIWidget
« Reply #1 on: June 25, 2014, 10:04:25 PM »
UILabel has a properties - localSize and printedSize . check these out.
Worked on Doc&DogAge Of Fury 3D. Actually working on WarMach.