from:https://blog.csdn.net/ithinking110/article/details/112028638
exception thrown: RuntimeError: float unrepresentable in integer range
- Webgl https://emscripten.org/docs/compiling/WebAssembly.html#trap-mode
- Unity https://forum.unity.com/threads/how-to-debug-webgl-builds.615094/
- Wechat minigame
Add line
PlayerSettings.WebGL.emscriptenArgs += " -s BINARYEN_TRAP_MODE=clamp";
toAssets/WX-WASM-SDK/Editor/WXEditorWindow.cs
methodBuild()