This is a small script I wrote for one of the games I've been working on lately in Unity, and I thought it might be useful to share it :D
- Add the script to a Game Object
- Add your tracks to the Tracks List (leave the Shuffle Container empty)
- Drag and drop your Audio Source onto the Audio Source field of the script
- Enjoy!
The script may lack specific functionalities (for example maybe you don't want to shuffle the music), but feel free to modify it however you want. I think it's better to start from here than from 0 :D
For now the script has the following:
- Fade IN/OUT when going from one track to another
- Fade duration (maybe you want the fade to be more sudden than to take a lot of time)
- MAX Volume slider
