Step 2.5 - Audio Manager
Last updated
Last updated
Add the "AK_AudioManager" from the prefabs folder or the "Adventure_Kit_Managers" pack to add all to the hierarchy. You can add the "AK_AudioManager" script to an empty gameobject if you want to start fresh.
Adding more audio clips: On the Audio Manager you can increment the "Size" value of the manager array to add a new element so you can add more 2D sounds.
NOTE: Most Systems will now have variables which allow you to change audio names in the inspector without going into code but this is how you would do it manually!
Name | The name of the audio clip you will reference in code | |
Clip | Add the sound effect from the "Sounds folder" to this slot | Empty Box |
Volume | The volume of your audio clip | Default :1 |
Volume Variance | Default can be set to 0. | Default: 0 |
Pitch | Setting the Pitch of your audio clip | Default: 1 |
Pitch Variance | The default variance of the audio pitch | Default: 0 |
Loop | Set whether you want the audio clip to loop | Tickbox |
Mixer Group | If you want to keep the mixer group for audio | Mixer Group |
Do you want to see a list of the audio references on the default "AudioManager" prefab? Click the link below: