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
while(true)
{
// I 100% confirmed the game called this class public Void .ctor() method.// so that mean there is an instance exists somewhere in the game memory.// The reason i can't hook them because:// Too late. the game called .ctor before Resolver even done.// I need the instance to iterate at the runtime in my case.
UnityResolve::Class* CProtocol_CSMsgPara = pAssembly->Get("CSMsgPara", "Protocol");
constauto Vector1 = CProtocol_CSMsgPara->FindObjectsByType<UnityResolve::UnityType::Object*>();
LOG(DEBUG) << Vector1.size(); // always zero didn't exists for the whole playing timeconstauto Vector2 = CProtocol_CSMsgPara->FindObjectsByType<UnityResolve::UnityType::Array<Object*>*>();
LOG(DEBUG) << Vector2.size(); // always zero didn't exists for the whole playing timeTHIS_SLEEP(3s);
}
i searched the internet and tried this frida js version: vfsfitvnm/frida-il2cpp-bridge#341
and its working fine. the project is for android.
The text was updated successfully, but these errors were encountered:
mehgancangweh
changed the title
How to find an active instance of a class at the runtime?
How to obtaining an active instance of a class at the runtime?
Mar 27, 2025
You can't call FindObjectsByType if you are looking for an IL2CPP Object and not a GameObject
You need to call the functions from the garbage collector like they do in frida-il2cpp-bridge
You can't call FindObjectsByType if you are looking for an IL2CPP Object and not a GameObject You need to call the functions from the garbage collector like they do in frida-il2cpp-bridge
Since i low knowledge with the il2cpp things, i'd love to see if you can give me example
i searched the internet and tried this frida js version: vfsfitvnm/frida-il2cpp-bridge#341
and its working fine. the project is for android.
The text was updated successfully, but these errors were encountered: