# Can't build addressables because FMOD Editor scripts get included

**URL:** <https://qa.fmod.com/t/cant-build-addressables-because-fmod-editor-scripts-get-included/16692>\
**Category:** Unity\
**Created:** [January 27, 2021, 12:20am UTC](https://qa.fmod.com/t/cant-build-addressables-because-fmod-editor-scripts-get-included/16692 "2021-01-27T00:20:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lenophie](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/lenophie/32/1873_2.png) [@Lenophie](https://qa.fmod.com/u/Lenophie)\
**Post date:** [January 27, 2021, 12:20am UTC](https://qa.fmod.com/t/cant-build-addressables-because-fmod-editor-scripts-get-included/16692/1 "2021-01-27T00:20:45Z")

</div>

Hello!

We’ve recently migrated to FMOD on our project and everything is working fine audio-wise when we start the game in Play Mode. However, I get errors when building the project’s addressables since migrating: For the record, we weren’t loading the banks as addressables _yet_ but even after following instructions from [here](https://fmod.com/resources/documentation-unity?version=2.1&page=user-guide.html#assetbundles-addressables), the problem persists.  
As shown in the screenshot below, it seems the addressables try to put FMOD editor code in the bundle, code which relies on UnityEditor, a assembly missing when building addressables, causing the errors.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/4/4af185145ffebde9cc0c2e6c6a991c88045a0904.png)  
Our addressables don’t contain anything exotic (sprites, scriptable objects, prefabs) so I figure this is more of a configuration issue since the project plays well before building

We are using Unity 2020.2.1f1 with FMOD 2.00.10 and Addressables 1.16.15

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![Lenophie](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/lenophie/32/1873_2.png) [@Lenophie](https://qa.fmod.com/u/Lenophie)\
**Post date:** [January 27, 2021, 2:56pm UTC](https://qa.fmod.com/t/cant-build-addressables-because-fmod-editor-scripts-get-included/16692/2 "2021-01-27T14:56:55Z")

</div>

Hello again!

I seem to have found the issue:  
The editor scripts get bundled because the project is missing the FMODUnityEditor assembly file, which would mark the editor scripts as Editor only, now comes the weird part:  
I can see I’m supposed to get this file when downloading from the Asset Store, as shown by expanding Package Content from the [plugin’s page](https://assetstore.unity.com/packages/tools/audio/fmod-for-unity-161631#content)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/b/b552feee49d7556d523e9979f8486210d1fb5ae8.png)  
But when I try to import the package from the Package Manager, the file is missing, hence why I don’t have it in the project

Any other way to retrieve that file?

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [February 2, 2021, 3:50am UTC](https://qa.fmod.com/t/cant-build-addressables-because-fmod-editor-scripts-get-included/16692/3 "2021-02-02T03:50:43Z")

</div>

The version of FMOD on the Unity Store is currently 2.01.07, which is very different from 2.00.xx.

You can also download newer versions of FMOD 2.00 from our [Download](https://www.fmod.com/download) page.

---

<div class="post-metadata">

**Author:** ![Lenophie](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/lenophie/32/1873_2.png) [@Lenophie](https://qa.fmod.com/u/Lenophie)\
**Post date:** [February 10, 2021, 3:06pm UTC](https://qa.fmod.com/t/cant-build-addressables-because-fmod-editor-scripts-get-included/16692/4 "2021-02-10T15:06:54Z")

</div>

Thanks for your answer ! My problem wasn’t really version-related, I initially had FMOD in 2.00.10 and tried to upgrade it to 2.01.07 in hopes it would fix the bug but didn’t!  
I ended up creating my own assembly file under FMOD/src/Editor

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/7/7b21cfefd1d3ed289d3941d75bc39a374410b80d.png)  
This indeeds fixes the issue, it’s just weird the package manager doesn’t allow me to import said assembly file in the first place
