In my app, I have a script: ‘myScript.cs’ that contains a variable ‘myVar’.
When compiling for WebGL, Unity will create a web environment with an ‘index.html’ page and other stuff.
My question: To this generated web environment, I want to add javascript that reads the value of ‘myVar’.
Anyone who can tell me how to send out the value of ‘myVar’ at the C# side, and how to pick up this value at the js side?
This makes a difference, because the error message has disappeared. However, now the page freezes and there is another error: “a webpage is slowing down your browser”. It looks like there is some communication now, but it gets caught up…