I have placed an audio listener on an object and now can’t find it.
- I have removed all AudioListeners on the cameras.
is there a search or script i can run to give me a print out of the Audio listeners in the scene?
I have placed an audio listener on an object and now can’t find it.
is there a search or script i can run to give me a print out of the Audio listeners in the scene?
http://docs.unity3d.com/Documentation/ScriptReference/Object.FindObjectsOfType.html
you can say:
function Start () {
var myListeners : AudioListener[] = FindObjectsOfType(AudioListener) as AudioListener[];
for (var hidden : AudioListener in myListeners) {
Debug.Log("Found: " + hidden.gameObject);
}
}