Skip to content

Conversation

ajm13
Copy link

@ajm13 ajm13 commented Aug 15, 2025

Module.dynCall does not work in Unity 6 with WebAssembly.Table enabled (which is forced on if targeting WebAssembly 2023), and according to this, it should be replaced with an Emscripten macro {{{ makeDynCall(...) }}}(...);

However, since this syntax isn't supported by all older versions of Unity, to keep this backwards compatible I use a conditional if (typeof dynCall != 'undefined') to use the old syntax if dynCall is available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant