# Does Studio Bank Loader override the overall FMOD integration settings?

**URL:** https://qa.fmod.com/t/does-studio-bank-loader-override-the-overall-fmod-integration-settings/19979
**Category:** Unity
**Created:** [March 16, 2023, 9:21pm UTC](https://qa.fmod.com/t/does-studio-bank-loader-override-the-overall-fmod-integration-settings/19979 "2023-03-16T21:21:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![torley-gallium](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/torley-gallium/32/3688_2.png) [@torley-gallium](https://qa.fmod.com/u/torley-gallium)
#### Post date: [March 16, 2023, 9:21pm UTC](https://qa.fmod.com/t/does-studio-bank-loader-override-the-overall-fmod-integration-settings/19979/1 "2023-03-16T21:21:45Z")

</div>

I’m referring to this:

[https://www.fmod.com/docs/2.02/unity/game-components.html#studio-bank-loader](https://www.fmod.com/docs/2.02/unity/game-components.html#studio-bank-loader)

How is this expected to interact with having Settings set to load ALL banks, or if I set **Import Type = Streaming Assets** and **Load Banks = Specified**?

Does the overall Settings override this as a superset? Like if I have it set to load “SFX.bank” banks and the Studio Bank Loader doesn’t specify this but specifies a “Music.bank”, do BOTH get loaded on project play? (Assuming load condition is met.)

---

<div class="post-metadata">

### Author: ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)
#### Post date: [March 17, 2023, 5:58am UTC](https://qa.fmod.com/t/does-studio-bank-loader-override-the-overall-fmod-integration-settings/19979/2 "2023-03-17T05:58:28Z")

</div>

Banks are loaded when something attempts to load them, unless they’re loaded already; and they’re unloaded when something attempts to unload them, unless they’re unloaded already. Whether that something is the overall integration settings or a Studio Bank Loader is irrelevant.

This means that if you set the overall intergration settings to load all banks when your game starts, it will, and you won’t be able to use Studio Bank Loaders to load any more banks _unless_ you first use a Studio Bank Loader to unload some of those banks, in which case it will become possible to use a Studio Bank loader to load those banks again.

> [@torley-gallium](#):
>
> Like if I have it set to load “SFX.bank” banks and the Studio Bank Loader doesn’t specify this but specifies a “Music.bank”, do BOTH get loaded on project play? (Assuming load condition is met.)

Yes, assuming that the integration settings specify that “SFX.bank” should be loaded when your game starts, and a Studio Bank Loader that is run when your game starts specifies that “Music.bank” should be loaded, both “SFX.bank” and “Music.bank” will be loaded when your game starts.

It would be unusual to use Studio Bank Loaders in this fashion, however, since if you need a bank to be loaded upon game start, it would be easier to include that bank in the integration settings’ list of banks to load upon game start. Studio Bank loaders are more commonly used for banks that need to be loaded and unloaded on the fly once your game is already running.

---

<div class="post-metadata">

### Author: ![torley-gallium](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/torley-gallium/32/3688_2.png) [@torley-gallium](https://qa.fmod.com/u/torley-gallium)
#### Post date: [March 17, 2023, 3:48pm UTC](https://qa.fmod.com/t/does-studio-bank-loader-override-the-overall-fmod-integration-settings/19979/3 "2023-03-17T15:48:56Z")

</div>

Great clarity, thank you @joseph !

---

<div class="post-metadata">

### Author: ![torley-gallium](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/torley-gallium/32/3688_2.png) [@torley-gallium](https://qa.fmod.com/u/torley-gallium)
#### Post date: [March 17, 2023, 4:54pm UTC](https://qa.fmod.com/t/does-studio-bank-loader-override-the-overall-fmod-integration-settings/19979/4 "2023-03-17T16:54:16Z")

</div>

@joseph Here’s another subtlety: what if an event is assigned to multiple banks that are loaded? If it’s the same event, does FMOD know to not load it into memory several times? This is what I’d expect but having confirmation is of course appreciated.

---

<div class="post-metadata">

### Author: ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)
#### Post date: [March 20, 2023, 3:16am UTC](https://qa.fmod.com/t/does-studio-bank-loader-override-the-overall-fmod-integration-settings/19979/5 "2023-03-20T03:16:32Z")

</div>

> [@torley-gallium](#):
>
> what if an event is assigned to multiple banks that are loaded? If it’s the same event, does FMOD know to not load it into memory several times?

Events are reference counted for this purpose. An event is loaded if at least one bank to which it is assigned is loaded, and is then unloaded only when all of the banks to which it is assigned are unloaded.

So, yes, FMOD does know not to load multiple copies of an event that’s included in multiple banks, and also knows not to unload an event included in an unloaded bank if the event is also included in a still-loaded bank.

---

<div class="post-metadata">

### Author: ![torley-gallium](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/torley-gallium/32/3688_2.png) [@torley-gallium](https://qa.fmod.com/u/torley-gallium)
#### Post date: [March 20, 2023, 4:01pm UTC](https://qa.fmod.com/t/does-studio-bank-loader-override-the-overall-fmod-integration-settings/19979/6 "2023-03-20T16:01:28Z")

</div>

Thanks again, @joseph ! You word things so clearly. 🤘
