How to invoke a function that requires an Enum? #145
Unanswered
SamueleD78
asked this question in
Q&A
Replies: 1 comment 9 replies
-
I apologize, I moved some issues to this section, so every link is now invalid. However, this is what you have to do: const EItemType: Il2Cpp.Class = ...;
const KouraG = EItemType.field<Il2Cpp.ValueType>("KouraG").value; Then you can pass |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First, thank you for this WONDERFUL tool, i really LOVE it ^_^
I was able to do almost everything, but i'm having serious troubles in managing the enums.
I saw there was an older post, but has been deleted :-(
The function i wanna invoke is:
Game.ItemAssetInfo GetAssetInfo(Game.ItemDefine.EItemType itemType); // 0x0319f924
the enum Game.ItemDefine.EItemType is (just a slice):
I'm trying everything to create an instance of the enum and to invoke the function, but without reason, i always get a: "TypeError: cannot read property 'message' of null"
I swear i've read everything on the wiki and searched the web but without result.
Please help ^^
Beta Was this translation helpful? Give feedback.
All reactions