Loading and Unloading Banks

(Aaron Standridge) #1

This is presumably a pretty simple question, but I can’t find any references to it anywhere.

Is it possible via the Unity integration to specifically choose banks to be loaded, and then to subsequently unload them? If so, can anyone point me in the right direction?

(Nicholas Wilcox) #2

The default behavior of the integration is to simply load everything listed in FMOD_bank_list.txt when the FMOD_Listener component gets the OnEnable message.

You could modify this text file, but be warned it is overwritten whenever you import/refresh the banks.

Otherwise you’ll have to remove that load all code from the listener and use the FMOD.Studio.System.loadBank() function yourself.

(Aaron Standridge) #3

Great, thanks - that was the push in the right direction I needed.