The scene I"m functioning in continuous spams the article There space no audio listener in the scene. Please ensure there is constantly one audio listener in the scene. If I add a dummy camera through an Audio Listener, i then gain There space 2 audio listeners in the scene. Please ensure over there is constantly exactly one audio listener in the scene.

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

I know this happens since our camera is created programmatically, with an audio listener. I also realize this will not influence the non-development construct in any type of way.

Is it possible to disable these warnings completely?


\$\begingroup\$ would you want to add the listener programmatically to the camera in ~ creation? Or you simply want to disable the error message? \$\endgroup\$
\$\begingroup\$ you claimed that the two listeners error comes once you include a listener to the fake camera. I'm questioning if you wanted to add it programmatically come the camera friend are adding programmatically, and not have actually the dummy camera at all. But ok, you just want to disable the error. Exactly how will you have sound then? You want to use the dummy camera? the would develop a many weird problems.... \$\endgroup\$
I finished up permitting the Audio Listener on ours login camera, then damaging it programmatically as soon as the player camera spawns (this is what was causing the issue).

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


thanks for contributing solution to Game development Stack Exchange!

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

But avoid

Asking because that help, clarification, or responding to various other answers.Making statements based on opinion; back them increase with references or an individual experience.

Use MathJax to style equations. MathJax reference.

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

To find out more, see our advice on writing an excellent answers.

post Your prize Discard

By click “Post her Answer”, friend agree come our terms of service, privacy policy and cookie policy

Not the price you're looking for? Browse various other questions tagged unified or asking your own question.


site style / logo design © 2021 ridge Exchange Inc; user contributions license is granted under cc by-sa. Rev2021.9.9.40165

Game advance Stack Exchange works best with JavaScript enabled

her privacy

By click “Accept all cookies”, girlfriend agree stack Exchange deserve to store cookies on your an equipment and disclose information in accordance v our Cookie Policy.