Skip to content

Instantly share code, notes, and snippets.

@darklinden
Created February 7, 2023 04:17
Show Gist options
  • Save darklinden/3a4e21f88cce774feb731895c7306056 to your computer and use it in GitHub Desktop.
Save darklinden/3a4e21f88cce774feb731895c7306056 to your computer and use it in GitHub Desktop.
Unity-WEBGL exception: float unrepresentable in integer range

Unity-WEBGL exception: float unrepresentable in integer range

from:https://blog.csdn.net/ithinking110/article/details/112028638

Exception

  • exception thrown: RuntimeError: float unrepresentable in integer range

Research

Solution

  • Wechat minigame

    Add line PlayerSettings.WebGL.emscriptenArgs += " -s BINARYEN_TRAP_MODE=clamp"; to Assets/WX-WASM-SDK/Editor/WXEditorWindow.cs method Build()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment