Skip to content

Casting a pointer to Array? #412

Answered by thinhbuzz
PeteSpencer asked this question in Q&A
Discussion options

You must be logged in to vote

try

new Il2Cpp.Array<Il2Cpp.Object>(pointer.readPointer(this.object.handle.add(OFFSET.SEQUENCE.ITEMS).readPointer()))

p/s: By the way, you should use the field name because the offset of armeabi-v7a and arm64-v8a will be different

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PeteSpencer
Comment options

Answer selected by PeteSpencer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants