I have a Unity WebGL project in which I would like to expose some Javascript functions to the webpage.
[This thread][1] seems to suggest that any javascript in a .jspre file is "*...appended to the beginning of the JavaScript framework without any preprocessing*" - I assumed that this meant that I could simply call this code from the containing page, but that doesn't appear to be the case (I cannot find where my code lives in the deployed webpage). The functions are definitely included in the build because I can access them with the 'compiled' javascript code in the .jslib file.
**What do I have to do to access the functions defined in my .jspre file, from the containing page?**
[1]: https://forum.unity3d.com/threads/breaking-changes-in-5-6.470183/
↧