The targets array should not be used inside OnSceneGUI or OnPreviewGUI.

Hi there,

I’m trying to put reverb zone snapshots into Unity’s “3D Gamekit” but it is not working. The player should be able to Trigger Enter and Trigger Exit the reverb zones using an FMOD Studio Event Emitter and a Box Collider but it does not work at all.

Whenever I try press ‘play’ in Unity, the game immediately pauses and this error appears in the console:

The targets array should not be used inside OnSceneGUI or OnPreviewGUI. Use the single target property instead.
UnityEditor.GameObjectInspector:OnForceReloadInspector ()
FMODUnity.EventManager:UpdateCache () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:315)
FMODUnity.EventManager:AffirmEventCache () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:57)
FMODUnity.EventManager:EventFromString (string) (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:840)
FMODUnity.EventManager:EventFromPath (string) (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:833)
FMODUnity.StudioEventEmitterEditor:OnSceneGUI () (at Assets/Plugins/FMOD/src/Editor/StudioEventEmitterEditor.cs:24)
UnityEngine.GUIUtility: ProcessEvent (int,intptr)

Any help appreciated x

same problem here.

Same here let’s gooooo — never mind. It started when I added the doppler effect to one of my sounds. It removed the effect, saved/built fmod again, checked (was still there) then removed the only script i made and attached to this gameobject. After disabling my script component, it went away. I added the doppler back and just saved my fmod project and the error hasn’t come in a couple runs. will update if that changes