Replies: 1 comment 2 replies
-
Just declare it as global: Il2Cpp.perform(() => {
(global as any).test_fn = function () {
console.log("Global:", Unity.version);
}
}); You may use PS: you don't need to use Il2Cpp.trace().classes(myClass).commit().detailed().build(); |
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
-
How do I make a global export method that allows me to quickly input instructions, such as: hook_my_class(" unityEngine.ui "," unityEngine.ui.text ")
Beta Was this translation helpful? Give feedback.
All reactions