-
I want to call a method GameObject.GetComponent, but const image = obj.method("GetComponent").inflate(imageType).invoke(); returns 'number', not 'Il2Cpp.Object'. namespace Verne namespace UnityEngine import "frida-il2cpp-bridge"; Il2Cpp.perform(() => {
C:/code/frida-agent-example/agent/index.ts (62,34): Property 'method' does not exist on type 'number | true | NativePointer | Int64 | UInt64 | Object | Pointer | ValueType | String | Array<Type |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Alternatively, call another overload method 'public extern Component GetComponent(Type type)'
but I don’t understand how to pass the type in the parameter. |
Beta Was this translation helpful? Give feedback.
-
Use imageType.type.object |
Beta Was this translation helpful? Give feedback.
Use imageType.type.object