Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Malzbier on September 26, 2012, 06:24:05 AM

Title: Move whole gui screen
Post by: Malzbier on September 26, 2012, 06:24:05 AM
I need to move the whole GUI screen complete off-screen.
The problem is how to move the whole screen?
I tried:
Moving the UIRoot -> Faild because the camera is underneath the UIRoot.

Packing all panels onto an empty gamobject underneath the camera and move this-> dos not work because the whole GUI is constructed with UIAncor.

Putting the  empty gamobject  the panel and all widgets  underneath paralel to the gui camera ->  dos not work because the whole GUI is constructed with UIAncor.

So its looking like i need some help.
Title: Re: Move whole gui screen
Post by: lime-green.at on September 26, 2012, 09:25:32 AM
Tried moving the panels?
Title: Re: Move whole gui screen
Post by: ArenMook on September 26, 2012, 10:23:21 AM
You need a game object underneath UIAnchor. This game object will have the rest of the UI parented to it, and it's the object you should move.
Title: Re: Move whole gui screen
Post by: Malzbier on September 26, 2012, 11:04:59 AM
The problem is that i have not one or two ... UIAnchor over the whole GUI , i have nearly every Button and Widget with his own UIAnchor script so that i have a Resolution and  aspect ratio independent interface.

If i had only one UIAnchor that i wouldn't be posting here :)

@
axm0nky : I can move the panel as much as i like , because the widgets are not parented to the Pannel , but to the camera / screen.