SimpleSoundManager is a Unity package designed for easy management and usage of sound assets. With the help of SoundDB, you can add new sounds, adjust volume, pitch, 3D sound settings, and more.
This package is based on the CategorizedDB package. Please install CategorizedDB first.
- Manage sounds
- Add and modify sound properties
- Change sound categories
Here’s how to install using the Unity Package Manager.
First, create a database to manage sounds. Go to Assets > Create > Data > SoundDB to create a SoundDB.
The SoundDB Editor is used to manage the database of SimpleSoundManager. Using the editor, you can add or edit sounds.
- The left TreeView allows selecting categories or sounds, and you can open a context menu with a right-click to add or delete sounds.
- The right Inspector lets you modify the selected category or sound data and settings.
You can open the context menu in the left TreeView by right-clicking. The currently selected category is shown at the top of the menu. If no category is selected, sounds will be added to the Root category.
To return to the Root category after selecting a specific category, double-click in the TreeView.
At the top of the sound settings, you can set the category and name of the SoundData. These settings determine the path displayed in the editor.
The Sound Settings section below allows you to configure the volume, pitch, and whether the sound is 2D or 3D.
Mixer: Select the mixer to adjust the volume of the sound.Clips: Choose sound clips to play. If more than one is selected, one is played randomly.Spatial Blend: Adjust the blend between 2D and 3D sound. 0 means 2D, and 1 means 3D. Enabling 3D sound activates additional options.Use Random Volume: Toggle random volume settings.Volume: Set sound volume or a range for random volume if enabled.
Use Random Pitch: Toggle random pitch settings.Pitch: Set sound pitch or a range for random pitch if enabled.
2D sounds are unaffected by position, while 3D sounds vary with distance. Adjust the Spatial Blend to configure the ratio of 2D to 3D sound.
For 3D sound, set the Spatial Blend to a value above 0 and configure Min Distance and Max Distance. These determine the effective range of the sound.
When using 3D sound, additional settings appear:
Min Distance: Set the minimum distance for the sound.Max Distance: Set the maximum distance for the sound.
Graph Properties:
Doppler Level: Adjust the Doppler effect.Volume Rolloff: Configure volume attenuation over distance.Spatial Blend: Control the extent of 3D sound.Reverb Zone Mix: Adjust the effect of reverb zones.
Select the sound you want to delete, right-click, and choose Delete from the menu.
Sound playback is managed via the SoundManager class. Use the following code to play sounds:
using Postive.SimpleSoundAssetManager.Runtime;
using Postive.SimpleSoundAssetManager.Runtime.Attributes;
using UnityEngine;
public class TestComponent : MonoBehaviour
{
[SoundSelector] [SerializeField] private string _sound;
private void PlaySound() {
SoundManager.PlaySound(_sound, transform.position);
}
}- Use the
SoundSelectorattribute to choose a sound from the SoundDB. SoundManager.PlaySoundplays the sound using its GUID.
You can pass a Vector3 or Transform to specify the playback position.
Before installing, ensure you’ve already installed CategorizedDB.
Tested on Unity versions 2019.3.4f1 and above. Use the following URL in Unity Package Manager to install:
https://github.com/Postive-ToolKit/SimpleSoundManager.git
Follow the steps above to install and use SimpleSoundManager. Simplify sound management and usage in Unity with SimpleSoundManager!








