Calling a method accepting a struct (Il2Cpp.ValueType) #290
Unanswered
SamueleD78
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Just call mBounds.method<Il2Cpp.Object>("get_min").invoke().unbox(); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
in the
UnityEngine.CoreModule
,UnityEngine.Camera
class, i want to call the methodUnityEngine.Vector3 WorldToScreenPoint(UnityEngine.Vector3 position);
UnityEngine.Vector3
is a struct.I have the
UnityEngine.Vector3
object stored in aUnityEngine.Bounds mKartBounds
object (again, a struct).So i do this way:
and i get an error...
if i disassemble the function, i see:
Beta Was this translation helpful? Give feedback.
All reactions