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

Game Crashes at GetName function #49

Closed
Lessyzz opened this issue May 11, 2024 · 2 comments
Closed

Game Crashes at GetName function #49

Lessyzz opened this issue May 11, 2024 · 2 comments

Comments

@Lessyzz
Copy link

Lessyzz commented May 11, 2024

What is the game you are using with IL2CPP Resolver?

My Own Game

Details:

When I run this code
The game crashes when the GetName function runs any idea?

Screenshots/Video:

No response

Minimal, Complete and Verifiable Example code:

Unity::il2cppArray<Unity::CGameObject*>* m_pObjects = Unity::Object::FindObjectsOfType<Unity::CGameObject>(UNITY_GAMEOBJECT_CLASS);

    for (uintptr_t u = 0U; m_pObjects->m_uMaxLength > u; ++u)
    {
        Unity::CGameObject* m_pObject = m_pObjects->m_pValues[u];
        if (!m_pObject) continue;

        cout << m_pObject->GetName();
    }
@extremeblackliu
Copy link
Collaborator

#48 (comment)

@extremeblackliu
Copy link
Collaborator

closed for duplicate, please talk on #48

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

2 participants