Home

Awesome

Bragi - Audio System

Bragi is a simple audio management system that makes it easy to configure audio clips, load and play.

Functionalities:

Dependencies:

How to install

- From OpenUPM:

Namepackage.openupm.com
URLhttps://package.openupm.com
Scope(s)com.legustavinho

- From Git:

How to use:

Basic configuration

For each AudioClip, create a new ScriptableObject of type ResourcesAudioConfig (or another type if you have created a new loading strategy), so to create it, in the project, Right-click Create -> Tools -> Bragi -> ResourcesAudioConfig.

Playing Audio

To play an audio, reference the ResourcesAudioConfig in the script and call the Play() function, alternatively you can use Bragi.Instance, for example:

public class BragiSample : MonoBehaviour
{
    public ResourcesAudioConfig sampleAudioConfig;
	
    void Start()
    {
        sampleAudioConfig.Play();

        Bragi.Instance.Play(sampleAudioConfig);
    }
}