Page cover

Getting Started

Install

Get it from Unity Asset Store, install it from Package Manager

Creating sound libraries

  • Locate Tools > BroAudio > Library Manager in the Unity menu bar.

  • Drag and drop the required AudioClip.

If multiple clips are dropped, a confirmation window will appear, asking how you would like to structure them.
  • Edit the parameters edit the clip's volume, playback position... etc.

  • Name the asset and entities and choose an AudioType You could also skip this step. Just remember to set it before you need them in your scene.

Implementation

You can implement the sound you've created in Library Manager with or without coding.

Without Code

  • Add SoundSource component to a game object

  • Select the required sound via the dropdown menu

  • Choose the triggering strategy Enables "Play On Start" if you want to play it when the game object is activated at runtime. Or using UnityEvent to trigger the Play() function like the Button's OnClick as below.

With Code

  • Declare a SoundID and implement BroAudio.Play() to play it

  • Select the required sound via the dropdown menu in the Inspector The same way as using SoundSource.

Hit the play button and enjoy it!

That's all you need to start using BroAudio. Of course, there is more than just this. Check out the rest of the documentation to fully unlock all the features of BroAudio.

Last updated