Closed fork1488 closed 2 years ago
IL2CPP::ResolveCall is used only for predefined Unity Engine class functions and not custom C# Classes.
You gonna need to find class and fetch method as:
Unity::il2cppClass* m_pCharacterManager = IL2CPP::Class::Find("CharacterManager");
void* m_pGetCharacterByFid = IL2CPP::Class::Utils::GetMethodPointer(m_pCharacterManager , "GetCharacterByFid");
IL2CPP::ResolveCall is used only for predefined Unity Engine class functions and not custom C# Classes.
You gonna need to find class and fetch method as:
thx
IL2CPP::ResolveCall is used only for predefined Unity Engine class functions and not custom C# Classes.
You gonna need to find class and fetch method as:
Unity::il2cppClass* m_pCharacterManager = IL2CPP::Class::Find("CharacterManager"); void* m_pGetCharacterByFid = IL2CPP::Class::Utils::GetMethodPointer(m_pCharacterManager , "GetCharacterByFid");
sorry for stupid question, how find instance/s of class?
sorry for stupid question, how find instance/s of class?
You can either hook constructor of class or any class function that gets called and just save the pointer. Simplest way to get class instance is find some component of gameobject that is currently using the class.
when my error?
IL2CPP::Data.Functions.m_pResolveFunction not zero