# Fmod Plugin working in Unity editor but not build

**URL:** <https://qa.fmod.com/t/fmod-plugin-working-in-unity-editor-but-not-build/17428>\
**Category:** Unity\
**Tags:** unity\
**Created:** [July 13, 2021, 10:39am UTC](https://qa.fmod.com/t/fmod-plugin-working-in-unity-editor-but-not-build/17428 "2021-07-13T10:39:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfarr](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jfarr](https://qa.fmod.com/u/jfarr)\
**Post date:** [July 13, 2021, 10:39am UTC](https://qa.fmod.com/t/fmod-plugin-working-in-unity-editor-but-not-build/17428/1 "2021-07-13T10:39:45Z")

</div>

Hi Folks

Tryin to get an FMOD plugin to work in a Unity build. The plugin is written in csound have a .DLL and .csd file saved in Assets\Plugins\FMOD\lib\win\x86\_64. the plugin works when running the game in the Unity editor just not after being built.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/2/2c57bb6850281882322c7230c862a2393fe4b18b.png)

any idea on where i have gone wrong or fixes

Cheers

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [July 14, 2021, 4:53am UTC](https://qa.fmod.com/t/fmod-plugin-working-in-unity-editor-but-not-build/17428/2 "2021-07-14T04:53:22Z")

</div>

Have you added the plugin to the Dynamic Plugins array in the FMOD Settings? The [Plugins](https://fmod.com/resources/documentation-unity?version=2.02&page=plugins.html#dynamic-plugins) section of the Unity Integration docs outline the additional steps required for plugins to behave as expected.  
If it still isn’t working after that, if you could please let me know what versions of FMOD and Unity you are using, as well as a little more context for how you are loading your plugin then I will investigate further.

---

<div class="post-metadata">

**Author:** ![jfarr](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jfarr](https://qa.fmod.com/u/jfarr)\
**Post date:** [July 14, 2021, 11:42am UTC](https://qa.fmod.com/t/fmod-plugin-working-in-unity-editor-but-not-build/17428/3 "2021-07-14T11:42:39Z")

</div>

Hi thanks for getting back to me,  
I have attempted to add the plugin to the Dynamic Plugin List

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/6/634f75866511f7bce14ebaaa8702cbd8d525aafc.png)  
current running Unity 2019.4.11f1 with Fmod Unity integration Version 2.01.09.

sorry I’m very new at this so probably haven’t got the right idea. I currently just have the plugin instrument in an event in fmod, I’ve then put the .dll in the Assets\Plugins\FMOD\lib\win\x86\_64 and checked the load on startup in the plugin load settings, then put it in the dynamic plugin list.

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [July 15, 2021, 12:54am UTC](https://qa.fmod.com/t/fmod-plugin-working-in-unity-editor-but-not-build/17428/4 "2021-07-15T00:54:41Z")

</div>

That seems to be the correct setup then- have the errors changed at all since adding the dll to the plugin list or are they exactly the same as before?

---

<div class="post-metadata">

**Author:** ![jfarr](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jfarr](https://qa.fmod.com/u/jfarr)\
**Post date:** [July 15, 2021, 2:37pm UTC](https://qa.fmod.com/t/fmod-plugin-working-in-unity-editor-but-not-build/17428/5 "2021-07-15T14:37:19Z")

</div>

I had already added the .dll to the plugin list so the errors are exactly the same

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [July 16, 2021, 2:12am UTC](https://qa.fmod.com/t/fmod-plugin-working-in-unity-editor-but-not-build/17428/6 "2021-07-16T02:12:24Z")

</div>

Okay then- a few things to try:

- Try running your built application as an admin
- Set the Logging Level in the FMOD settings to “LOG”, build and run, and click on “Open Log File” next to the Development Console after the error comes up.  
See if there is any additional information in there, key things to look for would be:  
“Missing DSP plugin”, “Invalid Parameter”, “Cannot find dsp of type”.
- Does the dll exist in the Plugins folder of your build? i.e \<project name\>\_Data\Plugins\x86\_64
  - If so, have you tried attaching a debugger from your plugin project to the dll at startup to see if there are any issues with your plugin?

---

<div class="post-metadata">

**Author:** ![jfarr](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jfarr](https://qa.fmod.com/u/jfarr)\
**Post date:** [July 16, 2021, 10:45am UTC](https://qa.fmod.com/t/fmod-plugin-working-in-unity-editor-but-not-build/17428/7 "2021-07-16T10:45:01Z")

</div>

found the issue, the dll did exist in the plugins folder but file it references wasn’t copied across.

cheers for the help
