Question by
nairukinopi · Jun 10, 2020 at 02:42 PM ·
javascriptwebplayerwebglsoundwave
About the temporary file save destination in webGL
1.Generate a wav file and save it below Application.persistentDataPath + "/filename.wav"
2.Convert to byte type and download via Java FileStream fs = new FileStream(Application.persistentDataPath + "/recTest.wav", FileMode.Open); _data = new byte[fs.Length]; fs.Read(_data, 0, _data.Length); fs.Close(); →JavaScript→Download my folder
In this case, is 1 saved successfully with WebGL? It works in UnityEditor, but Wav downloaded from Java is broken with WebGL Help me....
Comment