# The Studio:🏦:getLoadingState interface cannot get the correct loading status

**URL:** <https://qa.fmod.com/t/the-studio-getloadingstate-interface-cannot-get-the-correct-loading-status/18741>\
**Category:** Unity\
**Tags:** unity\
**Created:** [May 10, 2022, 9:29am UTC](https://qa.fmod.com/t/the-studio-getloadingstate-interface-cannot-get-the-correct-loading-status/18741 "2022-05-10T09:29:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lql](https://avatars.discourse-cdn.com/v4/letter/l/3be4f8/32.png) [@lql](https://qa.fmod.com/u/lql)\
**Post date:** [May 10, 2022, 9:29am UTC](https://qa.fmod.com/t/the-studio-getloadingstate-interface-cannot-get-the-correct-loading-status/18741/1 "2022-05-10T09:29:31Z")

</div>

Load the bank through the Studio.System.loadBankFile interface,the flags is LOAD\_BANK\_FLAGS.NONBLOCKING.When I get the loading state of the bank through the Studio:🏦:getLoadingState interface, it always returns ‘UNLOADED’. As a result, I can’t know what the bank is loaded in time.My unity version is 2020.3.33f1 and fmod version 2.02.04.There will be no such problem on unity version 2020.3.33f1 and fmod version 2.00.10.Is there something wrong with my settings? Who can help me?

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [May 12, 2022, 2:57am UTC](https://qa.fmod.com/t/the-studio-getloadingstate-interface-cannot-get-the-correct-loading-status/18741/2 "2022-05-12T02:57:51Z")

</div>

If a bank is already loaded into the FMOD Studio system, calling `Studio.System.loadBankFile` will silently fail and the bank variable you are using will return `UNLOADED` since that particular bank variable wasn’t loaded.

You can use `FMODUnity.RuntimeManager.HasBankLoaded(bankName)` to check if a particular bank is loaded or `Studio.System.getBankList` to get a list of all banks loaded.

[https://www.fmod.com/resources/documentation-unity?version=2.02&page=api-runtimemanager.html#hasbankloaded](https://www.fmod.com/resources/documentation-unity?version=2.02&page=api-runtimemanager.html#hasbankloaded)

[https://www.fmod.com/resources/documentation-api?version=2.02&page=studio-api-system.html#studio\_system\_getbanklist](https://www.fmod.com/resources/documentation-api?version=2.02&page=studio-api-system.html#studio_system_getbanklist)

---

<div class="post-metadata">

**Author:** ![lql](https://avatars.discourse-cdn.com/v4/letter/l/3be4f8/32.png) [@lql](https://qa.fmod.com/u/lql)\
**Post date:** [May 12, 2022, 1:04pm UTC](https://qa.fmod.com/t/the-studio-getloadingstate-interface-cannot-get-the-correct-loading-status/18741/3 "2022-05-12T13:04:59Z")

</div>

Thank you for your reply.I’m sure it’s not loaded into the FMOD Studio system.I didn’t load the same bank repeatedly.  
Because asynchronous loading is used,`FMODUnity.RuntimeManager.HasBankLoaded(bankName)` cannot correctly check whether this bank is loaded.  
If you judge whether the loading is completed according to the status of `Studio.System.getBankList`, sometimes an error of eventnotfoundexception will be reported when creating an eventInstance immediately.

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [May 17, 2022, 5:35am UTC](https://qa.fmod.com/t/the-studio-getloadingstate-interface-cannot-get-the-correct-loading-status/18741/4 "2022-05-17T05:35:47Z")

</div>

Are you able to share your script? I’m able to use `HasBankLoaded` fine when I set the Unity settings to not load any banks on initialization.
