I’m trying to make this program that generates a new ransom audio file each run (that has the same file name) and I want to set that new audio file to the music clip variable I made but i’m not sure how to do it, any help would be appreciated.
can load local audio file using *note: might not work with all formats
then assign that into audio source
Im not loading a clip from the internet, the audio clip is generated in the program and it gets put in the asset folder/resources folder, my main problem at the moment would be adding it to an audio clip, because right now I can add it the first time but when I try to generate a new piece of music it does’t play the newly generated one, it still plays the old one, the code is supposed to delete the old music file and make a new file with the same name, but with the new music, but the audio that plays from my source isn’t changing when i do it, is there any way to refresh my assets without using the unity editor namespace?
you can use that to load also local files,