Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: alexeyshevchenko on June 25, 2014, 11:48:02 AM

Title: Get Relative size UIWidget
Post by: alexeyshevchenko 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.
Title: Re: Get Relative size UIWidget
Post by: PoN on June 25, 2014, 10:04:25 PM
UILabel has a properties - localSize and printedSize . check these out.