Replies: 3 comments
-
Hi, const rect = Rect.new(); creates a reference type (aka a So, the method static System.Void Label(UnityEngine.Rect position, System.String text); // 0x04e0b89c expects a struct, but you are passing a object. So, you have to unbox the object first in order to call Label.invoke(new Il2Cpp.ValueType(rect.unbox(), rect.class.type), Il2Cpp.String.from("ahihih aaaa")); |
Beta Was this translation helpful? Give feedback.
-
@vfsfitvnm |
Beta Was this translation helpful? Give feedback.
-
@thinhbuzz Instead of a wiki (nobody reads boring ass wall of text), it should be something like a codelab |
Beta Was this translation helpful? Give feedback.
-
When I try to call Label - a static method I get below error message. So am I doing something wrong? Please help to clarify!
Code snippet
GUI class
Beta Was this translation helpful? Give feedback.
All reactions