A downloadable tool

Unity Package - Simple Audio Manager Unity


The Simple Audio Manager Unity package is an easy-to-use solution for managing your game's audio, including sound effects (SFX) and background music. This package comes equipped with intuitive features to simplify audio management and enhance player experience.

Key Features:

  1. Comprehensive Audio Controls
    • Manage both SFX and music with a single system.
    • Adjust volume levels independently for SFX and music using sliders.
  2. Automatic Settings Save
    • Volume settings are automatically saved and loaded using PlayerPrefs, ensuring a seamless experience for players even after restarting the game.
  3. Dynamic Audio for Movement
    • Easily configure audio to adapt dynamically to moving objects, such as footsteps, vehicle sounds, or environmental effects.
  4. User-Friendly Integration
    • Drag-and-drop prefabs and ready-to-use scripts minimize setup time.
    • Designed with simplicity in mind, requiring minimal coding knowledge to implement.
  5. Customizable UI
    • Includes example sliders for volume control, which you can easily customize to match your game's UI design.

Perfect For:

  • Developers looking for a quick and efficient way to manage game audio.
  • Projects requiring dynamic audio adjustments for moving objects.
  • Games that prioritize player experience with persistent audio settings.

Download

Download
SimpleAudioManager.unitypackage 103 MB

Install instructions

How to Use The Simple Audio Manager Unity Package


Follow these steps to integrate and use the Simple Audio Manager in your Unity project:

1. Import the Package

  1. Download the Package: Make sure you have the .unitypackage file of the Simple Audio Manager.
  2. Open Unity: Launch the Unity project where you want to use the package.
  3. Import the Package:
    • Go to Assets > Import Package > Custom Package....
    • Select the Simple Audio Manager .unitypackage file and click Open.
    • Check all files in the import window and click Import.

2. Set Up the Audio Manager

  1. Add AudioManager to the Scene:
    • Drag and drop the AudioManager prefab from the package folder into your scene (usually located in the Prefabs folder).
    • The prefab includes all the components needed to manage SFX and music.
  2. Add Audio Clips:
    • In the AudioManager object, there are two main sections:
      • Music: Assign the audio clips you want to use as background music.
      • SFX: Assign the audio clips you want to use as sound effects.
    • Drag your audio clips into the corresponding slots in the Inspector.

3. Set Up UI Sliders

  1. Use the Provided Slider Prefabs:
    • The package includes slider prefabs for controlling Music Volume and SFX Volume (found in the Prefab folder).
    • Drag and drop these sliders into your UI Canvas.
  2. Connect Sliders to AudioManager:
    • Select each slider in your UI.
    • In the Slider component, add a new event in the On Value Changed section.
    • Connect the event to the appropriate AudioManager function:
      • For music: AudioSetting.MusicVolume(float).
      • For SFX: AudioSetting.SFXVolume(float).

4. Dynamic Audio for Moving Objects

  1. Add an AudioSource Component:
    • Add an AudioSource component to any object requiring dynamic audio (e.g., footsteps or moving vehicles).
    • Assign the appropriate Audio Clip in the AudioSource.
  2. Play Audio Dynamically:
    • Use the AudioManager's function to play SFX dynamically:
      AudioManager.Instance.PlayMove("Footstep"); 
      
    • For moving objects, write scripts to update methods.

5. Auto-Save Volume Settings

  1. Automatic Save:
    • Volume adjustments made through the sliders are automatically saved using PlayerPrefs.
    • When the game starts, the AudioManager will load the last saved settings.

6. Testing and Customization

  1. Run the Game:
    • Test whether the background music and sound effects work as intended.
  2. Customize the UI:
    • Adjust the slider design in the Canvas to match your game's theme if necessary.

Leave a comment

Log in with itch.io to leave a comment.