Open Mrproex opened 6 months ago
the loop should be
Unity::CGameObject* m_pObject = m_pObjects->At(u);
However, I've been having the same problem in my recent code, but the triggering conditions are very random as far as I can tell, and it doesn't seem to raise the exception immediately when called, but rather after passing through several UnityEngine functions, and then crashing.
I might take the time to inspect what happened when i have free time.
What is the game you are using with IL2CPP Resolver?
Waven
Details:
Game simply close after calling m_pObject->GetName() .
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
void Test() { Unity::il2cppArray<Unity::CGameObject> m_pObjects = Unity::Object::FindObjectsOfType(UNITY_GAMEOBJECT_CLASS);
}
void OnUpdate() {
}
void OnLoad() { AllocConsole(); ReOpenConsoleStreams();
}