禁用audio监听器警告? “没有audio听众…”,“有两个audio听众…”

我正在工作的场景不断地传播信息There are no audio listeners in the scene. Please ensure there is always one audio listener in the scene There are no audio listeners in the scene. Please ensure there is always one audio listener in the scene 。 如果我添加一个audio监听器的虚拟相机,然后我得到There are 2 audio listeners in the scene. Please ensure there is always exactly one audio listener in the scene There are 2 audio listeners in the scene. Please ensure there is always exactly one audio listener in the scene

我知道这是因为我们的相机是以编程方式创建的,有一个audio监听器。 我也意识到这不会以任何方式影响非开发构建。

是否可以完全禁用这些警告?

我结束了在我们的login相机上启用Audio Listener,然后在播放器相机产生时(这是导致问题的原因)以编程方式销毁它。

  staticCamera= GameObject.Find("StaticCamera").GetComponent<Camera>(); Destroy(staticCamera.GetComponent<AudioListener>());