InAudio Documentation

Advanced Audio Plugin for Unity

User Tools

Site Tools


bankhook

Bank Hook

The bank hook is a very simply hook used to load and unload data stored in a bank. It allows to easily load and unload banks without having to use events or code for instance when loading a new level. Drag a bank from the window onto the drag area for the corresponding hook.

Each bank can be set if to load or unload. In this example we have a bank for the sounds used in level 2.
We place a game object in the level with a bank hook component, drag the bank “Level 2” onto both OnEnable and OnDestroy, and lastly set the OnDestroy hook to Unload so it will unload when Unity loads the next map.

bankhook.txt · Last modified: 2015/07/11 13:19 by peterolsted