# FMOD Studio: Encounterd Error: ERR\_INVALID\_PARAM An invalid parameter was passed to this function. UnityEngine.Debug:LogError(Object)

**URL:** <https://qa.fmod.com/t/fmod-studio-encounterd-error-err-invalid-param-an-invalid-parameter-was-passed-to-this-function-unityengine-debug-logerror-object/12557>\
**Category:** Unity\
**Created:** [July 2, 2016, 8:46pm UTC](https://qa.fmod.com/t/fmod-studio-encounterd-error-err-invalid-param-an-invalid-parameter-was-passed-to-this-function-unityengine-debug-logerror-object/12557 "2016-07-02T20:46:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hackeas](https://avatars.discourse-cdn.com/v4/letter/h/ac91a4/32.png) [@hackeas](https://qa.fmod.com/u/hackeas)\
**Post date:** [July 2, 2016, 8:46pm UTC](https://qa.fmod.com/t/fmod-studio-encounterd-error-err-invalid-param-an-invalid-parameter-was-passed-to-this-function-unityengine-debug-logerror-object/12557/1 "2016-07-02T20:46:27Z")

</div>

i have an scene in fmod 5.3.5 f1, with first person controller, a plane and a cube.

i fmod i have one event, with one song and Distance built in parameter.

in unity i imported a custom package fmodstudio10807\_v2 integration.

in fmod edit setting i checked load all event data at initialization

default setting i checked live update

in the camera i put a studio listener script

but when i push play in the event window a error appear

FMOD Studio: Encounterd Error: ERR\_INVALID\_PARAM An invalid parameter was passed to this function.  
UnityEngine.Debug:LogError(Object)  
FMODUnity.EditorUtils:CheckResult(RESULT) (at Assets/Plugins/Editor/FMOD/EditorUtils.cs:27)  
FMODUnity.EditorUtils:PreviewUpdateParameter(String, Single) (at Assets/Plugins/Editor/FMOD/EditorUtils.cs:444)  
FMODUnity.EventBrowser:PreviewEvent(Rect, EditorEventRef) (at Assets/Plugins/Editor/FMOD/EventBrowser.cs:689)  
FMODUnity.EventBrowser:OnGUI() (at Assets/Plugins/Editor/FMOD/EventBrowser.cs:473)  
UnityEditor.DockArea:OnGUI()

![enter image description here](http://s2.subirimagenes.com/imagen/previo/thump_96156801.png)

![enter image description here](http://s2.subirimagenes.com/imagen/previo/thump_96156822.png)

![enter image description here](http://s2.subirimagenes.com/imagen/previo/thump_96156833.png)

![enter image description here](http://s2.subirimagenes.com/imagen/previo/thump_96156864.png)

![enter image description here](http://s2.subirimagenes.com/imagen/previo/thump_96156845.png)

![enter image description here](http://s2.subirimagenes.com/imagen/previo/thump_9615693error.png)

---

<div class="post-metadata">

**Author:** ![nick1](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nick1](https://qa.fmod.com/u/nick1)\
**Post date:** [July 4, 2016, 1:15am UTC](https://qa.fmod.com/t/fmod-studio-encounterd-error-err-invalid-param-an-invalid-parameter-was-passed-to-this-function-unityengine-debug-logerror-object/12557/2 "2016-07-04T01:15:43Z")

</div>

Thanks for reporting this. There is a bug when previewing events that have built-in parameters such as distance or cone angle.

It will be fixed in the next release - 1.08.08. Or if you’re comfortable with code you can see the fix on [github](https://github.com/fmod/UnityIntegration/commit/17fc679c5115f3e853ef5bc76c23bef0190821a5)
