Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by MikeGameDev · May 15, 2015 at 06:40 PM · gamemultiplecamerastabsviews

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?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image LostInCode404 · May 16, 2015 at 02:20 AM 0
Share

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.

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
2

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...)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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

getting udp package info inside unity (GlovePIE) 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges