Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by toledocitc · May 05, 2016 at 09:08 PM · scenes

A scene over another

i have 3 different scenes on my project im using LoadScene("MainScene"); and work!, but when the "MainScene" scene display, the old scene stay on the background and suddenly i have some issues with the performance and (There are 2 audio listeners in the scene. Please ensure there is always exactly one audio listener in the scene.) appears on the console. how can i have isolate scenes and when i change of scene i want the other scenes to disappear

Before LoadScene alt text

After LoadScene alt text

if you would help me i really appreciate.

Pd: i'm not native speaker, sorry for the bad english.

ventana.jpg (321.1 kB)
issue.jpg (399.7 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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by toledocitc · May 05, 2016 at 09:57 PM

Wow! @Mavina thanks for quick response!.

  • I use "MainScene" just for a example because if i win (SceneManager.LoadScene ("win");) or lose (SceneManager.LoadScene ("lose");) i have the same problem.

  • Per scene each have just one audio listener in the main camera. when i use each scene alone i have not issue in the console just when i change the scene with LoadScene.

  • All my scenes are listed in the Scenes in Build.

GameScene Scene view. alt text

lose Scene view. alt text


gamescene.jpg (453.7 kB)
perdiste.jpg (367.5 kB)
Comment
Add comment · Show 4 · 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 TBruce · May 05, 2016 at 10:11 PM 1
Share

@toledocitc

Some how it looks like the scenes are being loaded additively. Try this ins$$anonymous$$d

 Scene$$anonymous$$anager.LoadScene ("lose", LoadScene$$anonymous$$ode.Single);

or

 Scene$$anonymous$$anager.LoadScene ("win", LoadScene$$anonymous$$ode.Single);
avatar image toledocitc TBruce · May 05, 2016 at 10:20 PM 0
Share

@$$anonymous$$avina same behavior... any another idea?

avatar image TBruce TBruce · May 05, 2016 at 10:28 PM 1
Share

@toledocitc

I am sorry but I can not think of anything. Without actually having the code there is nothing I can suggest.

BTW, are you using DontDestroyOnLoad() anywhere? If so try commenting it out temporarily.

avatar image toledocitc TBruce · May 05, 2016 at 10:33 PM 0
Share

DontDestroyOnLoad i use it wrong!, now i see my error. thank you so much @$$anonymous$$avina !

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

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

Find bool in multiple scenes? 0 Answers

How do I change scene with by a score lesser time based / problem scene wont switch to the right scene 0 Answers

how to control GameObjects from a different scene? 0 Answers

Prefab or Scene Base Game Development 1 Answer

Weapon Select Menu 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