Audio Manager
In more complex games, it's common to have many difference pieces of audio playing at the same time. This can become cumbersome to track or manage, especially if you need to do things like perform operations on all types of one specific kind of audio.
Thankfully, we have the AudioManager that exposes ways to quickly retrieve and iterate all Audio playbacks in a world.
Accessing An AudioManager
The AudioManager is used as a singleton and automatically created for a given world instance.
You can access the audio manager for a world like this:
Using An AudioManager
The AudioManager exposes a number of ways to get different types of Audio for a world. Here's some examples of how to use it.
Diving Deeper
Last updated