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
After LoadScene
if you would help me i really appreciate.
Pd: i'm not native speaker, sorry for the bad english.
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.
lose Scene view.
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);
@$$anonymous$$avina same behavior... any another idea?
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.
DontDestroyOnLoad i use it wrong!, now i see my error. thank you so much @$$anonymous$$avina !