How to Dynamically load banks using code

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.

Since you’re using Unity, you can use RuntimeManager.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 in our Unity docs.