MCPcopy Create free account
hub / github.com/axhlzy/Il2CppHookScripts / tryMethod

Method tryMethod

Il2cppHook/_Ufunc.js:11148–11151  ·  view source on GitHub ↗

Gets the method with the given name and parameter count.

(name, parameterCount = -1)

Source from the content-addressed store, hash-verified

11146 }
11147 /** Gets the method with the given name and parameter count. */
11148 tryMethod(name, parameterCount = -1) {
11149 const handle = Il2Cpp.Api._classGetMethodFromName(this, Memory.allocUtf8String(name), parameterCount);
11150 return handle.isNull() ? null : new Il2Cpp.Method(handle);
11151 }
11152 /** Gets the nested class with the given name. */
11153 tryNested(name) {
11154 return this.nestedClasses.find(e => e.name == name);

Callers 4

hasStaticConstructorMethod · 0.95
methodMethod · 0.95
tryMethodMethod · 0.45

Calls 2

isNullMethod · 0.80

Tested by

no test coverage detected