Adding and calling to .js files in build
Hi All!
I'm trying to get audio compression working in WebGL and so far it's been pretty draining (since I've never used javascript nor html).
So far I've tried to create .jslib files for emscripten to compile and use and although it works within it's scope I'm unable to convert some of the .js files into the correct format due to them containing class structures which (to my knowledge) cannot be passed to emscripten.
So, to get to the question I'm asking - is it possible to use javascript files that are added post-build and call them from within the WebGL app?
Answer by theaverageperson · Sep 18, 2020 at 07:55 AM
Managed to find a solution:
https://www.patrykgalach.com/2020/05/04/communication-between-unity-webgl-and-page/
Your answer
Follow this Question
Related Questions
Storing timetstamp when building for WebGL with C# 0 Answers
What's the proper way to make my game listen to a browser's javascript event? 0 Answers
How to retrieve nested JSON variable - sendMessage WebGL 0 Answers
Error in BUILD with UnityWebRequest but not in Editor 0 Answers
EditorUtility.OpenFilePanel for UnityWebGL (Runtime) 1 Answer