Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

How to read uploaded WebGL binary files?

$
0
0
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.

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>