# Banks are dublicated after build

**URL:** https://qa.fmod.com/t/banks-are-dublicated-after-build/17663
**Category:** Unity
**Created:** [September 11, 2021, 7:13pm UTC](https://qa.fmod.com/t/banks-are-dublicated-after-build/17663 "2021-09-11T19:13:20Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Racot\_A](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/racot_a/32/362_2.png) [@Racot\_A](https://qa.fmod.com/u/Racot_A)
#### Post date: [September 11, 2021, 7:13pm UTC](https://qa.fmod.com/t/banks-are-dublicated-after-build/17663/1 "2021-09-11T19:13:21Z")

</div>

Unity 2021.1.19, 2021.1.20 Fmod 2.01.11 IL2CPP Build

FMOD Studio project build path: unityProjectPath/Assets  
Single platform (PC) in StreamingAssets directory

After building the game my banks are duplicated from Assets/StreamingAssets to Assets/StreamingAssets/StreamingAssets directory

 ![FMOD_DublicatingSetting](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/9/9283d164e4ef278b1bd91cebd0a491949637a587.png)  
 ![FMOD_DublicatingSetting_Banks](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/0/0bc6cccbaf42e7b32017602e2b3879827f6579ca.png)[Editor.log](https://qa.fmod.com/uploads/short-url/lXzS6o2UkTvMSHOIXkqo7P8eGqt.log) (936.1 KB)

---

<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: [September 13, 2021, 5:35am UTC](https://qa.fmod.com/t/banks-are-dublicated-after-build/17663/2 "2021-09-13T05:35:37Z")

</div>

In the FMOD Integration settings, what is your FMOD Bank Sub Folder set to? If it is set to “StreamingAssets”, just set it to blank and it should prevent the double up. Let me know if that’s not the case and I’ll investigate further!

---

<div class="post-metadata">

### Author: ![Racot\_A](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/racot_a/32/362_2.png) [@Racot\_A](https://qa.fmod.com/u/Racot_A)
#### Post date: [September 13, 2021, 6:07am UTC](https://qa.fmod.com/t/banks-are-dublicated-after-build/17663/3 "2021-09-13T06:07:03Z")

</div>

My Build path set to Assets folder. Events are playing and worked  
 ![FMOD_Assets](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/9/99e1a6ab50a2a856ba0524066af40b6051eb6127.png)

If I set it to Empty of Assets/StreamingAssets folder - I have exeptions “EventNotFoundException: [FMOD] Event not found ‘event:/Environment/Interactive/Doors/Door Residential/FE\_Door\_Residential\_Broken’” and no one event are play  
 ![FMOD_StreamingAssets](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/4/49b1e42bf689d75389b909c7b15c56d77a2dafaa.png)

Also if I select Build Path and write per char word Asset - my editor is hold on for 2 minutes 🙂

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

---

<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: [September 13, 2021, 6:46am UTC](https://qa.fmod.com/t/banks-are-dublicated-after-build/17663/4 "2021-09-13T06:46:07Z")

</div>

That is strange- so just confirming:

- Everything plays fine when Build Path is set to “Assets”, but there is an error in the FMOD Settings?
- Nothing plays when the Build Path is set to “Assets/StreamingAssets”, but there is no error in the FMOD Settings?

Where are your banks located? Are they just in “\<project\_name\>/Assets” or somewhere else?

---

<div class="post-metadata">

### Author: ![Racot\_A](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/racot_a/32/362_2.png) [@Racot\_A](https://qa.fmod.com/u/Racot_A)
#### Post date: [September 13, 2021, 7:10am UTC](https://qa.fmod.com/t/banks-are-dublicated-after-build/17663/5 "2021-09-13T07:10:52Z")

</div>

> [@jeff\_fmod](#):
>
> Everything plays fine when Build Path is set to “Assets”, but there is an error in the FMOD Settings?

Yes. All working but I have banks duplication after build and warnings. No events errors

> [@jeff\_fmod](#):
>
> Nothing plays when the Build Path is set to “Assets/StreamingAssets”, but there is no error in the FMOD Settings?

I do not have error in the FMOD Settings but Nothing plays and I have errors Event not found.

My Banks location: \<project\_name\>/Assets/StreamingAssets

---

<div class="post-metadata">

### Author: ![Racot\_A](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/racot_a/32/362_2.png) [@Racot\_A](https://qa.fmod.com/u/Racot_A)
#### Post date: [September 13, 2021, 8:19am UTC](https://qa.fmod.com/t/banks-are-dublicated-after-build/17663/6 "2021-09-13T08:19:41Z")

</div>

After testing I understand new Build path logic.  
Before game start build Banks copied from Build path to AssetBundles folder path.

It’s nice but newly created files in streaming assets are not removed from StreamingAssets folder after build and I have new files in my git in Build path and same in StreamingAssets path. After the build, I need manually delete files from StreamingAssets. It’s not very nice ☹  
It would be nice to delete copied banks and folder after build automatically.

In prev versions, I set path to StreamingAssets in FMODSettings and build banks in StreamingAssets from FMOD Studio project. That was enough and everything worked well.

---

<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: [September 13, 2021, 11:21pm UTC](https://qa.fmod.com/t/banks-are-dublicated-after-build/17663/7 "2021-09-13T23:21:58Z")

</div>

I think the problem is that [FMOD copies built banks to the StreamingAssets folder](https://fmod.com/resources/documentation-unity?version=2.01&page=settings.html#import-type) automatically before a build, and because you have manually moved them there FMOD is copying your manually created StreamingAssets directory into the auto-generated StreamingAssets directory.  
To prevent banks duplicating when building I suggest modifying your setup like so:

- Remove existing FMOD banks from the StreamingAssets directory
- Set you FMOD Studio [Built banks output directory](https://fmod.com/resources/documentation-studio?version=2.01&page=glossary.html#built-banks-output-directory) to blank and rebuild your banks
- Set your [Build Path](https://fmod.com/resources/documentation-unity?version=2.01&page=settings.html#source-type) to \<directory of your project’s .fspro file\>\Build\Desktop
- Set your [FMOD Bank Sub Folder](https://fmod.com/resources/documentation-unity?version=2.01&page=settings.html#fmod-bank-sub-folder) to blank

---

<div class="post-metadata">

### Author: ![Racot\_A](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/racot_a/32/362_2.png) [@Racot\_A](https://qa.fmod.com/u/Racot_A)
#### Post date: [September 14, 2021, 9:19am UTC](https://qa.fmod.com/t/banks-are-dublicated-after-build/17663/8 "2021-09-14T09:19:42Z")

</div>

Thanks for the info. It’s good for solo dev but I am working in a remote team and copied banks added to git all time after build. After that I manually remove banks and this is very annoying.  
Best way to add auto-remove banks from project streaming assets after finished build.  
Start Build - CopyFiles - BuildComplete - ClearFiles = Nice clean project 🙂

Please add this feature in near future releases.

---

<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: [September 14, 2021, 11:55pm UTC](https://qa.fmod.com/t/banks-are-dublicated-after-build/17663/9 "2021-09-14T23:55:10Z")

</div>

I can see how that would be annoying and create a lot of source control noise, I have passed this along to the Dev team so they can look into a way of cleaning up the project’s StreamingAssets folder after a build.  
Thanks for the suggestion!

---

<div class="post-metadata">

### Author: ![Racot\_A](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/racot_a/32/362_2.png) [@Racot\_A](https://qa.fmod.com/u/Racot_A)
#### Post date: [September 15, 2021, 6:27am UTC](https://qa.fmod.com/t/banks-are-dublicated-after-build/17663/10 "2021-09-15T06:27:51Z")

</div>

Thanks, Jeff. Have a nice day.
