Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GameAnalytics crashes with Unity 2023.2.12f1 [WebGL] #28

Open
Hellfim opened this issue Mar 4, 2024 · 3 comments
Open

GameAnalytics crashes with Unity 2023.2.12f1 [WebGL] #28

Hellfim opened this issue Mar 4, 2024 · 3 comments

Comments

@Hellfim
Copy link

Hellfim commented Mar 4, 2024

Unity removed support for the Pointer_stringify function, thus all code using it produces errors, i. e.:

ReferenceError: Pointer_stringify is not defined
    at _configureSdkGameEngineVersion
@Sandrik8
Copy link

Sandrik8 commented Mar 25, 2024

Hello , I have this issue too, is there any fix?

Edit, Found Fix : pointer_stringify() replacing with UTF8ToString()

@reptiloyds
Copy link

Hello , I have this issue too, is there any fix?

Edit, Found Fix : pointer_stringify() replacing with UTF8ToString()

Hi. How you did this?

@Hellfim
Copy link
Author

Hellfim commented Mar 26, 2024

Edit, Found Fix : pointer_stringify() replacing with UTF8ToString()

To apply this fix you need to fork this repo and manually update all Pointer_stringify into UTF8ToString. I wouldn't say it's a good way.

On my end I actually created a PointerStringify.jspre (you can name yours however you want) file in the Assets/Plugins folder with following content

if (typeof Pointer_stringify === "undefined") {
    Pointer_stringify = function (ptr, length) {
        return UTF8ToString(ptr);
    }
}

It declares Pointer_stringify function in the global scope if it's not declared.
This way all requests from all plugins (including GA) which use that Obsolete method don't break and function properly.

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

No branches or pull requests

3 participants