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 Snownebula · Dec 10, 2013 at 08:09 AM · cameramultiplayersceneskybox

How do you use a camera from another scene on your skybox?

How do you use a camera from another scene on a skybox in the current scene? I want to have a camera in another scene that players will walk past and see it on the skybox in the admin area I am making in my game.

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

1 Reply

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

Answer by Tomer-Barkan · Dec 10, 2013 at 01:10 PM

You can't use a camera of another scene as skybox, because the other scene is not loaded in memory, hence you can't render the camera.

There are two ways I can recommend though:

  1. Before leaving the scene that you want to be displayed in the other scene, create a screenshot of the scene and save it as a temporary file. Then in the second scene, load the file and display it as skybox.

  2. You can have both cameras in one scene, except that each camera's layer mask only shows the objects that are relevant to it. Then when you want to show one of them as skybox, simply make sure it renders first, and the second camera's clear flags are set to depth. It will draw the second camera on top of the first camera.

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 Snownebula · Dec 10, 2013 at 04:41 PM 0
Share

How can I keep the scene alive than? $$anonymous$$y goal is an $$anonymous$$$$anonymous$$O btw. I don't know if that makes a difference.

avatar image Tomer-Barkan · Dec 10, 2013 at 09:36 PM 1
Share

Option 2 in my answer. Don't switch to another scene, keep both content in one scene, simply switch on/off the relevant cameras and filter which objects each camera shows using layers. As soon as you load another scene the old scene gets removed from memory.

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

17 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

Related Questions

i need help about players hands positions in 2D multiplayer card game 0 Answers

i want to create a multiplayer like fruit ninja, with a server and a client and only ONE scene but i can't make this with synced colours, see the video please 1 Answer

how do get camera, scene enemy in photon unity ? 0 Answers

Multiplayer Cameras Problems 2 Answers

Connection between menu and scene 2 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