Accessing Lists Field... #36
Unanswered
afk-Legacy
asked this question in
Q&A
Replies: 2 comments 8 replies
-
You have to handle it like a general const Point = object.fields.Point;
// System.Collections.Generic.List<System.Int64>
console.log(Point.type.name);
// it will print the System.Collections.Generic.List<System.Int64> class
console.log(Point.type.class);
const PointValue = Point.value as Il2Cpp.Object;
const size = PointValue.methods.get_Count.invoke<number>();
PointValue.methods.Add.invoke<void>(1234);
const newSize = PointValue.methods.get_Count.invoke<number>();
console.log(size + 1 == newSize); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Generating Error:
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I intend to access a field which is a list, I am pretty new to ts and frida in genreal so not sure how to do so,
Beta Was this translation helpful? Give feedback.
All reactions