Solved How to input Type in method ?

Status
Not open for further replies.

hienngocloveyou

Solid & Active Platinian
Original poster
May 16, 2021
62
7
8
38
VN
Hi everyone,

I don't know how to get type of specific object to input method. Below is method of unity engine to get all Gameobject in scene.

DO_APP_FUNC(0x030C9290, Object_1__Array *, Object_1_FindObjectsOfType, (Type * type, MethodInfo * method));

So how can I input type of gameobject in argument : Type * type.

Regards,
 

Tiahh

Solid & Active Platinian
Jan 12, 2018
79
46
18
37
Is this a function pointer?
You can use void* for functions, obviusly you must convert your gameobject to type.
 
  • Like
Reactions: hienngocloveyou

hienngocloveyou

Solid & Active Platinian
Original poster
May 16, 2021
62
7
8
38
VN
Is this a function pointer?
You can use void* for functions, obviusly you must convert your gameobject to type.
Yes. I get the one gameobject and get type of it then input to that method. It work perfectly.

Regards,
 

DaRealPanDa

Co-Administrator
Staff member
Supporting-Team
Global Moderator
Social Media
Mar 12, 2018
6,887
15,714
2,120
27
Skyrim
Thread will be set to "solved" and closed.
When you're not happy with that just send me a message and i will re-open the thread for you.

Thanks.
 
Status
Not open for further replies.