Changes in Unity 2021.2 beta (13)? Pointer_stringify

  1. It seems that “Pointer_stringify” is now undefined, and instead we should use “UTF8ToString”,
    but the manual for 2021.2 still talks about “Pointer_stringify”.
    Unity - Manual: Interaction with browser scripting

I do think that for backwards compatibility, it’ll be nice to still have this method, as lots of plugins are using it.

  1. While I was writing this post, Marks already posted about .jspre files being ignored(WebGL)
1 Like

Oh yea I noticed that…I checked all my plugins and updated them.

this issues is dependence with emscripten.
Other breaking change from emscripten v1.37.27 to remove the Runtime object…

FYR:
emscripten : release_notes
https://emscripten.org/docs/introducing_emscripten/release_notes.html

to check the emscripten version of unity playback engine
{UnityEditorPath}\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\emscripten-version.txt


for my project.
i added a function to support backwards compatibility.

and call this function at static constructor

1 Like

Yes, I know that it’s emscripten related, but Unity can add a “Pointer_stringify” wrapper function for “UTF8ToString”, so you and other tools creator won’t have to create patches or updates.
And I also know how to check the playback engine version :slight_smile: Unity WebGL Secrets. or Tricks and Tips for Unity WebGL and… | by Oren De-Panther Weizman | Medium

Also dyncall_sig should still work, I saw that @jukka_j made sure that emscripten would keep supporting it for backwards compatibility, this is why I think that “Pointer_stringify” should be the same.

2 Likes

Any Unity dev around? Please, I’d like to know if you guys are aware of this bug. I tried to report the bug twice, but I can’t because the bug report window freezes. This bug is critical for webgl, most(if not all) of my assets use .jspre files and if this bug doesn’t get fixed before release all of my plugins will suddenly break!

@jukka_j my man are you still dead? We need you!

1 Like