- Home /
Two audio listeners - when loading a level
I have created a level, where the playable character walks up to the door, and on pressing e, the script will load a different level (in this instance a different part of the house).
I have now put the PC I copied from the previous level and placed it into the new one. When I try to run the new level, I get the message "two audio listeners" I assume this is becasue of my playable character being instanced again. I have tried to find a way to un-load the previous level, but there does not seem to be one. Are there any other suggestions?
Answer by whydoidoit · Jun 25, 2012 at 09:26 PM
All things from the previous level will be unloaded unless you specifically called DontDestroyOnLoad on it. So you must have 2 listeners in the new scene - check which of your game objects have an Audio Listener attached - perhaps a prefab you instantiate? Do you already have a PC in the new scene perhaps...
Answer by OTommy · Jun 25, 2012 at 09:35 PM
ah excellent. Stupid ol' me. I still had the main camera which comes with every new scene. That is now gone, and working without any problems. thank you.
No problem - one thing - on UA Answer means Solution and not Reply - no one gets this first time :) There is a hidden Add New Comment button on the right.
Also please tick my answer above to get it off the unsolved list :)
Your answer

Follow this Question
Related Questions
Music on multiple scenes 2 Answers
Loadlevel weirdness 4 Answers
Load the next level once all enemy's are died... 1 Answer
Load level with 0 health help. 1 Answer
Load Level on Collision 1 Answer