Skip to content

marwanzaky/Unity-Audio-Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity Audio Manager Tool

Features

  1. Easy to manage all your audios in one Scriptable Object file
  2. Easy to access via code
  3. Offering even more methods, and each of them with its own use case

Usage

  1. Download this project, and add them to your own one
  2. Create a new empty gameObject named "AudioManager", and attach an AudioManager component to it
  3. Go to "Assets > Create > Scriptable Objects > Audio Manager Data" to create a new file to manage your audios' data
  4. Next, add a new audio to the array list providing as well all the information needed for the audio
  5. Go to AudioManager gameObject, and add the reference to the AudioManager Data you just created
  6. Finally, simply play the audio with this line of code
// The name of the audio we want to play
string audioName = "Button";

// Play the audio. Note: the audio will be destroyed once completed playing
AudioManager.Instance.Play(audioName); 

Screen Shot 2021-09-18 at 00 51 21

About

Unity Audio Manager is a tool to manage your Audios

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages