Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: YukioT on November 13, 2014, 05:02:28 AM

Title: Widgets' size and position going wild
Post by: YukioT 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.
Title: Re: Widgets' size and position going wild
Post by: YukioT 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.
Title: Re: Widgets' size and position going wild
Post by: YukioT 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?
Title: Re: Widgets' size and position going wild
Post by: ArenMook on November 14, 2014, 04:51:23 AM
You likely have more than one camera capable of seeing the UI layer.