- Home /
How can one render/print multiple cameras from different scenes at once?
I'm working on a 2D game that is supposed to have different layers/cameras.
Though, each one of them has a different scene (the main game has his own, the background has his own and so does the UI). I'd need to actually render all those at once but I have no idea how and Google seems not to help me.
If not possible, which are the alternatives?
Why are they in different scenes if you're trying to use them all in the same scene?
Just spotted the Layers feature of Unity. I mainly wanted to keep the cameras following an absolute position rather than a relative to the "camera zone" that I defined. But as the Layers allow hiding certain items like the UI sprites for the Game Camera, this is still possible without having to use different scenes.
Answer by Taschenschieber · Jun 28, 2014 at 06:26 PM
The usual way to do this would be to use Sorting Layers. Use one for the main game, one for the background and one for the UI (though, if you use the OnGUI() function, the UI will be on top of everything else anyway).
See http://unity3d.com/learn/tutorials/modules/beginner/2d/sorting-layers for the official tutorial on this.
$$anonymous$$y answers still have to be accepted by the moderators, sorry I couldn't answer faster. ;)