Plays audio using an audio source object pool.
This package can be installed through the Unity Package Manager with Unity version 2019.3 or greater.
Open up the package manager Window/Package Manager and click on Add package from git URL....
Paste in this repository's url.
https://github.com/Jason-Skillman/Audio-Pool-Manager.git
Click Add and the package will be installed in your project.
NOTE: For Unity version 2019.2 or lower
If you are using Unity 2019.2 or lower than you will not be able to install the package with the above method. Here are a few other ways to install the package.
- You can clone this git repository into your project's
Packagesfolder. - Another alternative would be to download this package from GitHub as a zip file. Unzip and in the
Package Managerclick onAdd package from disk...and select the package's root folder.
Alternatively you can also install this package as a git submodule.
$ git submodule add https://github.com/Jason-Skillman/Audio-Pool-Manager.git Packages/Audio-Pool-ManagerYou can create a new AudioManager and add it to your scene by right clicking in the hierarchy Audio/Audio Manager. Only one AudioManager should exist within any given scene.
| Member | Description |
|---|---|
Audio Clip |
The audio clip to play. |
Audio Config |
The audio configuration file to use when playing the audio. |
Use 3D Position |
Is the audio playing is 3D space? Uses this gameobject's location. |
| Member | Description |
|---|---|
Audio Clips |
Randomly chooses an audio clip to play from the array. |
Audio Config |
The audio configuration file to use when playing the audio. |
Use 3D Position |
Is the audio playing is 3D space? Uses this gameobject's location. |
Both components can trigger its audio clip by calling Play() in a UnityEvent or by another script. This method is also avilable in the context menu for debugging in the editor.
AudioConfiguation is a scriptable object filled with common audio settings.
To create a new AudioConfiguation settings file go to Create/Audio/AudioConfiguation.



