Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: terence on April 16, 2012, 01:39:00 AM
-
I am using a simple 2D UI but I need to have multiple in game camera (i.e. I deactivate the main camera, set another camera for conversations etc). Right now when I 'switch' camera, the UI goes with it. Can I get the Ui to use the new camera setup?
-
Unparent the UI from your camera, and it won't move with it.
-
Hmmm..not sure if I get you..Right now my Hierachy looks like this:
Cameras (Only 1 active)
->Main Camera
->Mouse Orbit Camera
UI Root(2D)
->Camera
-->Anchor
--->Panel
-----><Uis>
when I switch between the main camera and the mouse orbit camera, the UI dissapears (I am assuming that there is some late binding happening between the UI camera and the main camera).
-
Oh, I see. You need to make sure that Main Camera's Depth matches your Mouse Orbit Camera's Depth, and that their clear flags match as well.