# How to Dynamically load banks using code

**URL:** <https://qa.fmod.com/t/how-to-dynamically-load-banks-using-code/23044>\
**Category:** Unity\
**Tags:** csharp\
**Created:** [June 16, 2025, 4:13pm UTC](https://qa.fmod.com/t/how-to-dynamically-load-banks-using-code/23044 "2025-06-16T16:13:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AiRRoBBiE](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@AiRRoBBiE](https://qa.fmod.com/u/AiRRoBBiE)\
**Post date:** [June 16, 2025, 4:13pm UTC](https://qa.fmod.com/t/how-to-dynamically-load-banks-using-code/23044/1 "2025-06-16T16:13:02Z")

</div>

Basically in game every object has it’s own bank file associated with it. I have a line of code that checks every object that will be used in the game during load time. I just am having an issue figuring out how to write out the BankLoad script so that it will load during loadtime before the game starts.

Editing to Add: My banks are the same name as the object so when I check the object I want to Use BankLoad to check each name and load the corresponding one.

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [June 18, 2025, 3:03am UTC](https://qa.fmod.com/t/how-to-dynamically-load-banks-using-code/23044/2 "2025-06-18T03:03:58Z")

</div>

Since you’re using Unity, you can use [`RuntimeManager.LoadBank()`](https://www.fmod.com/docs/2.02/unity/api-runtimemanager.html#loadbank) to load banks, and optionally also load their sample data ahead of time. If you want to load them asynchronously, take a look at the [Async Loading example script](https://www.fmod.com/docs/2.02/unity/examples-async-loading.html) in our Unity docs.
