Trouble automatically importing Audioclip's into unity for background music,bulk audio importing
Im currently working on a piece of code in C# for a game that involves a radio that randomly plays audio for background music. I want to find a way to automatically import all the audio clips from a specific folder without having to individually select each sound file in unity since Im going to have quite a large number of sound files and I want to add them without having to changing the code too much each time.
I was thinking potentially having a array which stores each sound file in it and I can just loop the array if I want to select a random sound file but I have no idea how I would go about doing that or if its even possible since Im still quite new to unity and moved from C++ to C# quite recently.
Any help would be greatly appreciated.
Your answer
Follow this Question
Related Questions
Detecting when two different audio sources are emitting sound in Unity 0 Answers
How do i make Unity seamlessly loop my background music? 5 Answers
How do I play an audio clip on a keyframe in sprite animation? 0 Answers
audio error 2 Answers
What causes weird cracking/popping sound when playing 3d sound 1 Answer