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 luxidium · Sep 11, 2014 at 06:37 AM · cameraui4.6

unity3d 4.6 separate ui for each camera

How would I go about making separate canvases for two separate cameras in one scene.

Comment
Add comment
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

2 Replies

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

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.

Comment
Add comment · Show 3 · 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 MorphVGX · Feb 08, 2015 at 04:18 PM 0
Share

So it is not possible to do this with Screen Space Camera?

avatar image HarshadK · Feb 09, 2015 at 09:15 AM 0
Share

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?

avatar image TheWarper · Aug 06, 2015 at 05:57 PM 0
Share

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?

avatar image
2

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

alt text

alt text

I made a plane and put 2 different text objects on it. Then I made 2 cameras and did what was explained above.


ex2.png (33.4 kB)
ex1.png (52.6 kB)
Comment
Add comment · Show 1 · 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 C___ · Mar 21, 2016 at 11:39 AM 0
Share

this seems to work for world space canvases but not for overlay ones. are you sure you used overlay canvases in your example?

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Player UI freezes when rendering to render texture. 1 Answer

canvas screen space camera rotation issue 0 Answers

Recreate Unity Editor Window in Game 0 Answers

UI 4.6 Scrollbar.value sets to 1 first time but not when opened again 2 Answers

Galak Z like UI element 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