This project can helps to manage audio settings to save them in PlayerPrefs, Can manage Master volume, BGM, SFX, Ambient or another kind of volume as you wish
- Add
AudioManagercomponent to any empty game object in first scene - To add volume slider, add
AudioSliderto ui game object then set kind of setting (Master Volume or BGM or SFX ...) - To add volume turn on/off toggle, add
AudioToggleto ui game object then set kind of setting (Master Volume or BGM or SFX ...) - Then add
AudioSourceSetterto any audio source and set play mode toPlayClipAtAudioSourceto apply volume setting to this audio source while play a game - Or add
AudioSourceSetterwithPlayClipAtPointplay mode to play audio at specific point (transform position) with volume setting while play a game