jirihybek / unity-websocket-webgl

Hybrid WebSocket implementation for Unity 3D with support of native and browser client.
Other
248 stars 61 forks source link

Issue makeDynCall #21

Open w3leee opened 3 months ago

w3leee commented 3 months ago

Starting with Unity 2021, we changed the way to use makeDynCall. https://docs.unity3d.com/2021.3/Documentation/Manual/web-interacting-browser-example.html

Update Runtime.dynCall("viii", webSocketState.onMessage, [ instanceId, buffer, dataBuffer.length ]); to {{{ makeDynCall('viii', 'webSocketState.onMessage') }}}(instanceId, buffer, dataBuffer.length);

nyalpin commented 2 months ago

thanks!