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

Method tryField

Il2cppHook/_Ufunc.js:11143–11146  ·  view source on GitHub ↗

Gets the field with the given name.

(name)

Source from the content-addressed store, hash-verified

11141 }
11142 /** Gets the field with the given name. */
11143 tryField(name) {
11144 const handle = Il2Cpp.Api._classGetFieldFromName(this, Memory.allocUtf8String(name));
11145 return handle.isNull() ? null : new Il2Cpp.Field(handle);
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);

Callers 4

fieldMethod · 0.95
cModuleMethod · 0.45
tryFieldMethod · 0.45
internalMethod · 0.45

Calls 2

isNullMethod · 0.80

Tested by

no test coverage detected