Hey everyone,
I want to know if I can create an output inside of a c# script so that I can assign an output to a mixer channel. OR I would like to edit the audio source script so that I can randomize the audio clip playing. My main focus is being able to randomize the audio clip playing so that I have a randomized playlist of music coming from this audio source. How would I accomplish this?
You’re not the first person to want to randomize the audioclips playing, it’s very common.
Always ask google.
https://www.google.co.uk/webhp?sourceid=chrome-instant&rlz=1C1KMZB_enGB576GB576&ion=1&espv=2&ie=UTF-8#q=unity randomize audioclips
Audiosources are not tied to playing a particular Audioclip, you can reassign the Audioclip at runtime. A single Audiosource can be used to create a playlist.
1 Like
Thanks, I searched google first but I guess didn’t use the right search terms. It does not specify how to get it out to a mixer channel and my audio in my script is not running out to anything.
Depends what you define as a playlist. If you want crossfading between the songs, you will need 2 audio sources and more complex code.
Yea I am using 2 audiosources and mixersnapshots to fade between them. I just need to alter the song playing out each mixer channel after the previous one finishes playing so that my mixersnapshots function properly.