You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code will override the Emscripten system Runtime object. (fortunately Unity today does not use any Emscripten constructs that would refer to the Runtime namespace, but that is not guaranteed)
The code invoking dynCalls is not compatible with future Emscripten versions (3.1.38 and newer), because legacy dynCall() functions in new Emscripten versions require declaring a __deps directive (which was not present).
To fix both these issues, the following diff can be applied:
The syntax {{{ makeDynCall('signature', 'functionCallback') }}}(...args); works in
Emscripten 2.0.3 and newer (starting at this commit that first appeared in Emscripten 2.0.3 in September 2020)
Unity 2021.2 and newer (Unity 2021.2 first updated to Emscripten 2.0.19.5-unity)
Reading the main readme file of this repository, it seems that only Unity 2022 and newer are supported by this plugin, so the above changes will be safe in all supported Unity versions, and will be future compatible with Unity 6 and newer, with best performance in Unity's WebAssembly 2023 feature set and without.
The text was updated successfully, but these errors were encountered:
Two problems with
.jslib
files in the project:Runtime
object. (fortunately Unity today does not use any Emscripten constructs that would refer to theRuntime
namespace, but that is not guaranteed)__deps
directive (which was not present).To fix both these issues, the following diff can be applied:
The syntax
{{{ makeDynCall('signature', 'functionCallback') }}}(...args);
works inReading the main readme file of this repository, it seems that only Unity 2022 and newer are supported by this plugin, so the above changes will be safe in all supported Unity versions, and will be future compatible with Unity 6 and newer, with best performance in Unity's WebAssembly 2023 feature set and without.
The text was updated successfully, but these errors were encountered: