- Home /
unity3d 4.6 separate ui for each camera
How would I go about making separate canvases for two separate cameras in one scene.
Answer by HarshadK · Sep 11, 2014 at 06:40 AM
Create two different canvases in your scene.
Select the Render Mode for each canvas as Screen Space - Camera.
Then assign the camera for each of those canvases as required.
Then that particular canvas will be drawn using the camera assigned to it.
So it is not possible to do this with Screen Space Camera?
It is using Screen Space - Camera as stated by:
Select the Render $$anonymous$$ode for each canvas as Screen Space - Camera.
Did you mean Screen Space - Overlay?
I've been unable to get this to work with one camera being used as a game world camera, and one as a UI. It appears the game world camera just draws everything overtop of the UI cam when activated. Has anyone found a solution?
Answer by Hotsaucehater · Feb 08, 2015 at 06:02 PM
You could just give the UI for one camera a LAYER of UIOne and the UI for the other camera a LAYER of UITwo. Then go to the first camera and click on CULLING MASK and unselect UITwo. Go to the second camera and unselect UIOne. Then the cameras will only show the UI meant for it.
--An Example Below--
I made a plane and put 2 different text objects on it. Then I made 2 cameras and did what was explained above.
this seems to work for world space canvases but not for overlay ones. are you sure you used overlay canvases in your example?