You are watching: There are 2 audio listeners in the scene
I understand this happens since our camera is developed programmatically, through an audio listener. I likewise realize this will not influence the non-development develop in any kind of way.
Is it possible to disable these warnings completely?
$egingroup$ would certainly you desire to add the listener programmatically come the camera in ~ creation? Or you just want to disable the error message? $endgroup$
$egingroup$ you claimed that the 2 listeners error comes as soon as you include a listener come the fake camera. I'm asking if you wanted to include it programmatically to the camera girlfriend are including programmatically, and not have actually the dummy camera at all. But ok, you simply want come disable the error. How will you have actually sound then? You desire to use the fake camera? that would create a many weird problems.... $endgroup$
I ended up allowing the Audio Listener on our login camera, then ruining it programmatically once the player camera spawns (this is what was resulting in the issue).
staticCamera= GameObject.Find("StaticCamera").GetComponent(); Destroy(staticCamera.GetComponent());
thanks for contributing response to Game advance Stack Exchange!Please be sure to answer the question. Provide details and also share her research!
But avoid …Asking for help, clarification, or responding to various other answers.Making statements based upon opinion; back them increase with recommendations or an individual experience.
Use MathJax to style equations. MathJax reference.
See more: What Are The Two Basic Windows 8 Settings For Network Security And Maintenance
To learn more, view our advice on writing an excellent answers.
write-up Your prize Discard
Not the price you're feather for? Browse other questions tagged unit or questioning your own question.
site design / logo © 2021 ridge Exchange Inc; user contributions licensed under cc by-sa. Rev2021.11.18.40788