Is there any way to access data of list generics ? #592
-
I tried to hook on the method above, and get access to every Game.Mail.Data.MailRewardObject in the List, which is the generic type of HttpResponseEvent . If I use new IL2CPP.Object(arg[1]) , it is a HttpResponseEvent instance. Right? Is it impossible to get access to every MailRewardObject in the generic list of the parameter?? below is the structure of the HttpResponseEvent.
I tried to follow the Generics handling tab, but I have no clue how to move on from the below to get the list elements
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I almost got to there, but one problem was, invoke() from il2cpp bridge method returns IL2CPP.Method.ReturnType. How should I read the value from IL2CPP.Method.ReturnType?? I tried to search for it, but there was no progress. would anyone know it? |
Beta Was this translation helpful? Give feedback.
The value returned by
invoke
is indeed the actual value (e.g. you canconsole.log
it) -Il2Cpp.Method.ReturnType
is just an union of all the possible types a method invocation can return (e.g.void
,number
,Il2Cpp.Object
...).Il2Cpp.Method
takes a generic type argument, so that you can specify the return type of that method, e.g: