Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Moran on January 21, 2013, 04:16:40 AM
-
I have the following scenario:
- Container Object
-- Screen 1
--- Screen 1 GUI (GUI1 Layer + camera)
-- Screen 2
--- Screen 2 GUI (GUI2 Layer + camera)
I'm moving Container Object along the Y axis to scroll between screens, which should both be active at all times. The GUI of course is not moving with the rest of the sprites. How do I make each GUI anchored to the screen it's in so it will move along with it? They are on separate layers, with separate cameras of a different ortho size than the main camera.
Thanks!
-
You need to disable the anchors if you intend to move your UI.
-
For future generations:
You need to disable the anchors if you intend to move your UI.
First of all, THIS^^^^.
When NGUI creates a panel (at least in the free version I initially used) it creates it with anchors automatically.
Also: an animation in the container object, which moves the container itself, and also each GUI panel separately, did the trick. Simple, once my brain un-n00bed.
Thanks!