The docs (https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html) describe how to create a native WebGL plugin in JavaScript, and even how to call C# methods from it. However, what I would like to do is to call the JavaScript methods defined in the plugin from the browser itself (from the Chrome console; for instance).
How would that be done? Where are these JavaScript methods placed?
I have even tried to assign these methods to the global scope (by explicitly placing them into 'window') but apparently it doesn't work.
is the WebGL plugin system documented in more detail somewhere?
↧