Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: hummada23 on December 18, 2013, 03:04:44 AM

Title: UIPanel jumping on first load
Post by: hummada23 on December 18, 2013, 03:04:44 AM
Hi,

I have a bunch of UIPanels in my MAC OSX standalone application, which display parts of a HUD (e.g., one panel is used to display some icons at the bottom of the screen). When I run my application, the first time any of these panels show (using NGUITools.SetActive), they jump slightly (almost imperceptibly) to the left. After this, I can hide and show the panels without seeing any sort of jump. Each panel object has an object underneath it with a UIAnchor.

Has anybody encountered anything similar, and does anybody know what might be the cause of the problem? I've tried:

- toggling the 'half pixel offset' on the UIAnchor
- playing with the scaling style on the UIRoot
- enabling all the UIPanels at once behind a black screen (so that the jump isn't visible), then removing the black screen
Title: Re: UIPanel jumping on first load
Post by: ArenMook on December 18, 2013, 12:19:42 PM
The "half pixel offset" setting tells me that you don't have the latest version of NGUI. Please update before posting about issues.
Title: Re: UIPanel jumping on first load
Post by: hummada23 on December 18, 2013, 05:23:13 PM
Fair enough, I'll upgrade and see how I go.

Thanks