A downloadable asset pack

Download NowName your own price

Hi!

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

Instructions:

  • 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 (me personally I have the audio source on my Main Camera)
  • 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

!!! If after pressing "Download Now" you're getting prompted to pay for it/donate, press on "No thanks, just take me to the downloads". This a free asset/tool, you don't have to pay for it!!!
Published 2 days ago
StatusIn development
CategoryAssets
AuthorJFab00
TagsMusic, Unity

Download

Download NowName your own price

Click download now to get access to the following files:

BackgroundMusicShuffle.cs 2.4 kB

Comments

Log in with itch.io to leave a comment.

Added Fade In + Fade Out option to the original code

  • you can choose if you want your background music to have (or not) fading between tracks by checking the Is Fading option.
  • the Fade Duration is the how long will the fade go for.
  • Max Volume is pretty self explanatory