Problem with browser interaction WebGL

Hi guys!
I’m currently having a problem with the unityInstance.SendMessage function in JS with a WebGL game. When I try to send a string to unity with 100 characters or so, I get a Uncaught RuntimeError: memory access out of bounds error. Does someone know if there is a fix or someone who had the same problem? Or maybe a work around for connection between the browser and unity itself? Im using unity version 2019.1.1f1.

Best wishes for the next year!
Kasper

I fixed the problem myself :). I saw somewhere that using dynamic from .NET 4 can cause issues in webgl. So i went back to .NET 2 and replaced all the dynamic types.

1 Like