Hello !
I would like to randomly play some music the player previously copied in folder “Music” contained in the Data folder of the build. I have no clue how to do that …
The only things I know (or I suppose are correct) are that I need “Application.dataPath” to get the Data folder created by the build (for windows), add the “/Music” string to get the entire path, maybe load the musics with “Resources.LoadAll(”*.mp3").
Depending on the number of files, I’ll loop on them and add an AudioSource component, then put the music as the clip of this component (I don’t have any clue how to do this…)
Can someone help me a little bit with this please ?
EDIT : nobody can help me ?