Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: JonathanBurroughs on May 15, 2014, 03:44:25 PM
-
My game is crashing with a "too many listeners" error. What does this mean?
-
Audio Listener components. Cameras have one by default and this usually shows up when you create more than one camera.
https://docs.unity3d.com/Documentation/Components/class-AudioListener.html
-
There isn't a PlayMaker-specific error which refers to listeners? I only have 1 camera in my scene.
-
Gah. I don't know why I even suggested that. Thank you, you're entirely right. Now to figure out how such a thing has happened!
-
Actually could I ask how the PlayMaker action "Set Parent" behaves under the hood? I'm using it to transfer my game camera between different player objects. And in one instance it causes FMOD to generate a crash complaining there is more than 1 listener in the scene. Does "Set Parent" duplicate the game object it is moving? If so that might account for why FMOD momentarily detects too many audio listeners.
-
Here is the specific error message if that helps at all:
Too many listeners
UnityEngine.Debug:LogError(Object)
FMOD.Studio.UnityUtil:LogError(String) (at Assets/Plugins/FMOD/FMOD_StudioSystem.cs:58)
FMOD_Listener:Initialize() (at Assets/Plugins/FMOD/FMOD_Listener.cs:120)
FMOD_Listener:OnEnable() (at Assets/Plugins/FMOD/FMOD_Listener.cs:19)
UnityEngine.Transform:set_parent(Transform)
HutongGames.PlayMaker.Actions.SetParent:OnEnter() (at Assets/Imported/PlayMaker/Actions/SetParent.cs:38)
HutongGames.PlayMaker.FsmState:ActivateActions(Int32)
HutongGames.PlayMaker.FsmState:OnEnter()
HutongGames.PlayMaker.Fsm:EnterState(FsmState)
HutongGames.PlayMaker.Fsm:SwitchState(FsmState)
HutongGames.PlayMaker.Fsm:UpdateStateChanges()
HutongGames.PlayMaker.Fsm:Start()
PlayMakerFSM:Start()