Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: shokinhan on May 27, 2013, 01:34:26 AM

Title: NGUIMath.CalculateAbsoluteWidgetBounds() 's probleam
Post by: shokinhan on May 27, 2013, 01:34:26 AM
I use the tunction NGUIMath.CalculateAbsoluteWidgetBounds(tran) , the tran object has a sprite, then i get the center position.
But the position's look like  has a lot of pixel offset.



Title: Re: NGUIMath.CalculateAbsoluteWidgetBounds() 's probleam
Post by: ArenMook on May 27, 2013, 11:21:52 AM
The returned value is in world coordinates, so I highly doubt that this is what you want. You need to convert them to screen space for them to be useful.
Title: Re: NGUIMath.CalculateAbsoluteWidgetBounds() 's probleam
Post by: shokinhan on May 27, 2013, 11:53:07 PM
Thanks