Hi, I want to upload audio to my game via javascript (because of WebGL), and I have my input and everything working, and I can select a file, but how would I pass the file back into Unity as an **AudioClip** ?
I saw that @alexsuvorov had a lot of posts on WebGL so I'm gonna poke him to see if he can help me...
I've already tried using
URL.createObjectURL()
And even tried using the malloc method as shown in the docs, but I can't seem to convert the binary file into an AudioClip and obviously URL.createObjectURL doesn't work because of browser security.
↧