ccrma / chunity

ChucK in Unity
https://chuck.stanford.edu/chunity/
MIT License
12 stars 2 forks source link

WebGL -- Extended Callbacks Crashing #3

Open lathertonj opened 2 years ago

lathertonj commented 2 years ago

The Extended Callback Tests scene is currently crashing on WebGL.

To reproduce:

To fix:

The issue is likely with the dynamic callbacks from javascript back to C#, i.e. the dynCall. First place to look would be Emscripten documentation, as well as Unity documentation. https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html https://forum.unity.com/threads/c-jslib-2-way-communication.323629/ https://stackoverflow.com/questions/25576458/calling-a-function-pointer-with-emscripten

chunthebear commented 2 years ago

Not sure if this is related but when running in editor with build target being WebGL, lines containing DllImport fail due to EntryPointNotFoundException.