Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: mahewitt on November 01, 2014, 04:22:39 PM
-
Hi,
How are UIPanels linked to the camera?
I have 2 camera's and one of my UIPanels seems to insist on following the wrong camera.
So in the below, GameMenuPanel seems to wrongly follow UI Root2 and placed as such in the design mode even though position is set to 0,0,0.
-UI Root1
-- Camera1
-- GameMenuPanel
-- ..
-UI Root2
-- Camera2
-- MessagePanel
-- ..
Thanks for the help,
Mark
-
Layers. Each camera needs to have its cull mask set so that it sees only what it should. If you have two cameras drawing the UI layer, then you've got a bug you need to fix.
If you have 2 roots, each one must be on a different layer.
P.S. You might want to rethink that. There is no reason for more than one UIRoot unless you have 3D UI and 2D UIs.