Author Topic: UIPanel jumping on first load  (Read 6167 times)

hummada23

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 45
    • View Profile
UIPanel jumping on first load
« 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPanel jumping on first load
« Reply #1 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.

hummada23

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 45
    • View Profile
Re: UIPanel jumping on first load
« Reply #2 on: December 18, 2013, 05:23:13 PM »
Fair enough, I'll upgrade and see how I go.

Thanks