Unable to correctly get pointer for "struct System.Nullable<T> : System.ValueType"? #115
Replies: 3 comments 1 reply
-
Hi, a question first:
That's not how you read a
You can't call a method on a struct. You must convert it to a object (aka boxing) first. However, all these things are correctly handled by |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help, I understand where I did wrong now. The following works:
|
Beta Was this translation helpful? Give feedback.
-
@wildsheepz const object = new Il2Cpp.Object(this.instance);
const nullable_transitionhandle = object.fields.TransitionHandle.value as Il2Cpp.ValueType; |
Beta Was this translation helpful? Give feedback.
-
Hi I am facing some issue trying to interact with System.Nullable
Here is the code I am using:
Output and error I received:
Beta Was this translation helpful? Give feedback.
All reactions