The scene I"m working in constantly spams the message There are no audio listeners in the scene. Please ensure there is always one audio listener in the scene. If I add a dummy camera with an Audio Listener, I then gain Tbelow are 2 audio listeners in the scene. Please encertain tright here is constantly precisely one audio listener in the scene.

You are watching: There are two audio listeners in the scene

I know this happens bereason our electronic camera is developed programmatically, through an audio listener. I also realize this will not affect the non-advancement construct in any type of way.

Is it possible to disable these warnings completely?


*

$egingroup$ Would you want to add the listener programmatically to the camera at creation? Or you just desire to disable the error message? $endgroup$
$egingroup$ you sassist that the two listeners error comes as soon as you include a listener to the dummy camera. I'm asking if you wanted to include it programmatically to the cam you are adding programmatically, and not have actually the dummy cam at all. But ok, you just want to disable the error. How will certainly you have actually sound then? You desire to use the dummy camera? That would certainly create a lot of weird problems.... $endgroup$
I ended up enabling the Audio Listener on our login cam, then destroying it programmatically when the player video camera spawns (this is what was leading to the issue).

staticCamera= GameObject.Find("StaticCamera").GetComponent(); Destroy(staticCamera.GetComponent());

*

Thanks for contributing a solution to Video Game Development Stack Exchange!

Please be sure to answer the question. Provide details and share your research!

But avoid

Asking for assist, clarification, or responding to other answers.Making statements based on opinion; earlier them up through recommendations or personal suffer.

Use MathJax to format equations. MathJax referral.

See more: The I Have To Go My Planet Needs Me Gifs, Explore I Have To Go Now My Planet Needs Me Gifs

To learn even more, check out our tips on writing good answers.


Article Your Answer Discard

By clicking “Article Your Answer”, you agree to our regards to organization, privacy plan and also cookie policy


Not the answer you're looking for? Browse various other questions tagged unity or ask your very own question.


*

website design / logo design © 2021 Stack Exadjust Inc; user contributions licensed under cc by-sa. rev2021.9.9.40165


Game Advancement Stack Exadjust functions finest through JavaScript permitted
*

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange deserve to store cookies on your tool and also discshed information in accordance via our Cookie Policy.