This is the AMP version of this page.
If you want to load the real page instead, click this text.

Solved What is "void *instance" when we hooking function on il2cpp game ?

Status
Not open for further replies.
Simplifying its function so that you can understand, it holds the address on which the method will be "around".
The instance pointer argument intrinsecally exists due to how the memory is accessed, and that's why it must be placed in the hook. Have you tried what happens if you remove it?
 
i never deleted it but i used to provided NULL value for instance it still working nothing happen, but i still don't really understand :( instance in all methods in the same class is the same, right?
 
Status
Not open for further replies.