Author Topic: Panel position misreported in scene view & anchoring to panel is completely off  (Read 3072 times)

adb

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Using the latest 3.9.6d(?) version and Unity 5.3.1p3.

Two problems that I think share the same root cause. Both new with the new version (I upgraded from 3.7.4 I believe).

- GameObject, position 0, 0
  - UIRoot + Panel, localpos: 0, 0
     - UICamare, localpos: 0,0
     - UIWidget (Container): localpos: 0,0

With the setup for a new UIRoot like the above, the panel is displayed at (approx) 300,50 in the scene view (see attachment). Trying to anchor the UIWidget to the panel, result in it being anchored as if the panel was at 300,50 instead of 0,0.

I figured you wouldn't believe me so I recorded a 40s video of the problem happening in the editor: https://dl.dropboxusercontent.com/u/27068517/Screen%20Capture%20Tool_2016-01-23%2011.33.37.mov.

If there is no easy fix, I'd be happy to revert to an earlier version (my guess is that 3.9.6 with the new SetAnchor might be the problem), but I'm not on the PRO license.

Cheers,
Alain-Daniel


Chaz32621

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Check your UICam There is a setting to set the first cam that may help your situation.

NGUI is powerful but I swear unity fights against it so much!

adb

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Humm, I don't know that it is related to the UICamera and after having a look, there are indeed no options related to the anchoring or positioning of panels in there.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
You likely need to fix your layers. For example the root object is on one layer, while your UI is on another. You also should double-check the layers of your cameras. Make sure the main camera doesn't see the UI and that it's on the correct layer.