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 rsud · Oct 13, 2014 at 05:23 AM · scenesrunningseperate

Details on how scenes work?

Still reading up on Unity.... Can multiple scenes be loaded and running at the same time? Can I switch from one scene to another and then return back and the original scene in the state I left it? (switch from scene A to scene B and then return back to A having it preserved from when I left it) Can I suspend or keep multiple scenes running so scripts attached to GOs in all scenes can execute?

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
1

Answer by fafase · Oct 13, 2014 at 05:57 AM

I don't think you can keep scene open on the back, at least I can see it anywhere. You can use:

http://docs.unity3d.com/ScriptReference/Application.LoadLevelAdditive.html

but I don't think that is what you are after.

What you want is to start a scene and on a particular state you want to start a new scene with the previous still running, I would recommend to have only one scene but two separate zones. Instead of loading the new scene, you just move the camera to the next zone and switch the control back and forth, or move the whole player depending on what you want to do. But that may be heavy on the performances you know,if everything is doubled.

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
0

Answer by HarshadK · Oct 13, 2014 at 06:31 AM

For:

Can I switch from one scene to another and then return back and the original scene in the state I left it? (switch from scene A to scene B and then return back to A having it preserved from when I left it)

you can do it using the game state save mechanism. You can use a readymade option like Unity Serializer or you can write one as per your need. In this case when you leave scene A save its state and then go to scene B. Now when you come back to scene A you can load the scene again to resume from where you left.

For:

Can I suspend or keep multiple scenes running so scripts attached to GOs in all scenes can execute?

For this you can use LoadLevelAdditive as suggested by @fafase. So you can load and run multiple scenes. For suspending and handling scenes you might need write a scene manager that will handle all the game objects and other things from all these scenes and will disable all the GOs etc from a particular scene that you want to suspend.

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

28 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 avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Is it possible to have multiple scenes saved in memory? 1 Answer

How do I refer to a .text from a separate scene. 0 Answers

[Question] mp3player, my own music in unity game. 0 Answers

How to take a GameObject from A scene to B scene when the GO was instantiated? 1 Answer

Keeping Scene States 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