how to access static field? #74
Unanswered
encoderlee
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You get the Il2Cpp.perform(() => {
const AssemblyCSharp = Il2Cpp.Domain.assemblies["Assembly-CSharp"].image;
const Global = AssemblyCSharp.classes.Global;
const gameState = Global.fields.gameState;
const gameStateValue = gameState.value as Il2Cpp.ValueType;
console.log(`gameStateValue: ${gameStateValue}`);
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
how to get static field 'gameState' value?
thanks you very much !
Beta Was this translation helpful? Give feedback.
All reactions