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
1
Question by Aymax · Dec 15, 2014 at 11:20 AM · camerassplit-screen

Putting an image in the middle of two cameras (not repeated)

Hi,

My game screen is split in half, camera on the right and one on the left. I want to put an image on top of the middle area between them (i.e. I want the left half of the image appearing on top of the of the left camera and the other half on the left part of the right camera.)

Kindly find a screen shot I made with my desired requirements. alt text

Thanks

screenshot.png (34.0 kB)
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
3

Answer by taxvi · Dec 15, 2014 at 11:38 AM

lol but you need the third camera to draw above everything:

  1. create an empty object with the GUI texture you need

  2. put that object into a separate layer

  3. create a new camera and give it the following settings:

  • Clear Flags: Depth Only

  • Depth: anything bigger than both left and right cameras' depth (max 100)

  • Culling Mask: the layer of your new GUI object

Comment
Add comment · Show 2 · 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 Owen-Reynolds · Dec 15, 2014 at 03:15 PM 0
Share

I think people naturally think a camera is "expensive" because a real-world camera is. But it's just settings. Anyway you do this, the math is the same in the end.

And if you already know how to add a 2nd camera, why not go that same route and add a third?

avatar image taxvi · Dec 15, 2014 at 05:37 PM 0
Share

good point, I just tend to keep in $$anonymous$$d the number of drawcalls but yea, in this case its negligible

avatar image
3

Answer by HarshadK · Dec 15, 2014 at 11:40 AM

You can use new UI (Unity 4.6) to achieve this effect.

  • Create a canvas with Render Mode as 'Screen Space - Overlay'.

  • Add an image to this canvas and position it on the center of the screen.

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 taxvi · Dec 15, 2014 at 11:48 AM 0
Share

Ok, I support this

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

Two camera for Two PC-Screen 0 Answers

RenderPipelineManager.endCameraRendering only affects ViewPort-camera 1 Answer

Want two cameras to display the scene differently 2 Answers

How to use 2 Cameras in FPS 2 Answers

have a camera from a different scene? 1 Answer


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