- Home /
Multiple Game Tabs With Different Cameras
I want to have two Game tabs in the Unity editor, each rendering from a different camera.
How can I do this?
Well if you need those two cameras in. A game you can use render to texture from a camera and output it on screen with ui system. Just like a splitscreen. But if years u want two different tabs with different cameras i don't think its possible. But why do you need that if you just want to take a look from different angles then create two scene tabs viewing different things. Hope it helps you.
Answer by Bunny83 · May 16, 2015 at 05:17 AM
Here you go. I just made an editorwindow which can show any camera in the scene. However due to some "bad behaviour" of the editor when it comes to rendering cameras in EditorWindows, the size of the camera view is restricted to the actual SceneView size. If you simply add another sceneView as tab to the same view area it should view properly since the SceneView would scale with your custom view.
Furthermore the editor seems to add some kind of clipping to the bottom of the Rect which i haven't managed to remove (it's about the size of the windows titlebar). It also seems to be related to the actual GameView size.
At least that's the closest you can get ^^. Keep in mind that it's just a view and not a real GameView. So you can't play your game inside that window. The GameView represents your actual game. Inside the GameView all cameras are actually drawn if they are active. If you don't have a split-screen setup of your cameras or one has clearflags set to depth only or none you always see the last camera drawn since it overdraws what the first one has drawn.
Answer by Wilbert-Blom · Sep 29, 2016 at 09:24 AM
Resurrecting this thread because I found out that nowadays (Unity 5.4) you can open extra Game windows by right-clicking on an Inspector Tab and choose Add Tab>Game. You can set this Tab to another Display (and thus Camera).
(Still has some problems with focus though...)
Your answer
Follow this Question
Related Questions
Raycast with multiple camera's in scene 0 Answers
Multiple cameras running in full HD 1 Answer
How to get script components in multiple gameobjects C# 2 Answers
How to save a multpile choice? 1 Answer