Open lathertonj opened 2 years ago
The Extended Callback Tests scene is currently crashing on WebGL.
To reproduce:
python -m SimpleHTTPServer 8080
To fix:
FloatID
ChunityTestCallbacks.cs
getChuckFloatWithID
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
dynCall
Not sure if this is related but when running in editor with build target being WebGL, lines containing DllImport fail due to EntryPointNotFoundException.
The Extended Callback Tests scene is currently crashing on WebGL.
To reproduce:
python -m SimpleHTTPServer 8080
To fix:
FloatID
is failing inChunityTestCallbacks.cs
, then the fix will lie ingetChuckFloatWithID
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