Author Topic: Widgets' size and position going wild  (Read 5120 times)

YukioT

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Widgets' size and position going wild
« on: November 13, 2014, 05:02:28 AM »
Hello, I've got a weird issue with my UI.

Basically I have a window that fills most of my scene, using a UITexture as background. I've set its size un the GUI and constrained it with anchors to a panel that covers the whole UI Root. It worked great, until some unknown point when the size abruptly changed to 1151976x642844. The rest of my UI has also changed size or place, seemingly at total random: a panel covering the whole screen is now 1152152x2, and everything is at odd position I suppose to stay centered (like 572878.3;-876331.3;0 or -3233.406;-876225.4;0), but it just ends up kilometers away from my UI Camera.

I'm snooping around trying to do stuff but I'm kind of in the dark with this. Thanks in advance for any response.

YukioT

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: Widgets' size and position going wild
« Reply #1 on: November 13, 2014, 05:16:29 AM »
Tried deactivating all the GameObjects child to the root, leaving only the camera. The borders of the UIRoot still show way lower than the UICamera and with disproportionate size. See attached picture.

YukioT

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: Widgets' size and position going wild
« Reply #2 on: November 13, 2014, 08:57:44 AM »
Well apparently it has something to do with the layer on which my UI is. Is there a specific layer name/number I need to (not) set?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Widgets' size and position going wild
« Reply #3 on: November 14, 2014, 04:51:23 AM »
You likely have more than one camera capable of seeing the UI layer.