Audio Manager by riktothepast - 2


A persistent audio manager, for Unity 2D

Unity 5.5.0f3MIT LicenseUpdated 3 years agoCreated on March 27th, 2017
Go to source


A simple audio manager for your unity 2D projects, features:

  • Persistance across scenes
  • Music (looped) and sound playback (one shot)
  • Caching of sound effects

How to use it

  • Add the AudioManager prefab to your scene.

Playing music

from within your code you can call any of the two music playback methods and one to stop the current music playing.

Audio.Manager.Instance.PlayMusic(AudioClip musicClip);
Audio.Manager.Instance.PlayMusic(AudioClip musicClip, float volume, bool shouldRestart);

Playing sounds

Sound effects are cached in order to keep them available if you re use them a lot. You have 2 methods to call to reproduce sound effects:

Audio.Manager.Instance.PlaySound(AudioClip soundClip);
Audio.Manager.Instance.PlaySound(AudioClip musicClip, float volume);


Version 1.0.0

  • Singleton audio manager
  • Sound loading scripts
  • Unity package
Show all projects by riktothepast