Unity 的方法 / 类 / 字段运行时 方法参数(批量)断点(参数值 / 返回值 查看)$ git clone https://github.com/axhlzy/Il2CppHookScripts.git
$ cd Il2cppHook/
$ npm install
$ frida -U --no-pause -f com.xxx.xxx -l ../_Ufunc.js
...
i() == list_images 列出所有的 Images

c() == list_classes 列出所有的 Classes

m() == list_methods 列出所有的 Methods

f() == list_fields 列出所有的 Fields

findClass(className) 查找类,一般配合 m() 使用 , m(findClass('className')) === m('className')

findMethod 新版 / find_method 旧版

printExp 作为findMethod的补充版,方便查找函数



B ('ClassName') === B(findClass('ClassName')),不会重复添加已添加的Method,不带参数即断点所有常用的方法

b ('Method_Pointer') / b('MethodInfo_Pointer')

d / D : d === detachAll and d(ptr) === detach(ptr) / D() === detachAll + clear list cache
n / nn : n(ptr) === nop function and nn() === cancel nop function




watch/watchDisabled MemoryAccessMonitor的简单封装(arm32易崩)



HookSetActive : Hook SetActive

...
$ claude mcp add Il2CppHookScripts \
-- python -m otcore.mcp_server <graph>