# Misaka-Mikoto-Tech/MonoHook

hook C# method at runtime without modify dll file (such as UnityEditor.dll), works on Windows, Mac, Android il2cpp(armv7a and armv8a)

Repository: https://github.com/Misaka-Mikoto-Tech/MonoHook
Canonical: https://ross.abutalabs.com/products/monohook
Language: C#
License: MIT
License Family: permissive
Topics: unity, hook, jit, dll, unityeditor, il2cpp, android, mac
Last push: 2023-09-22T09:16:32+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2992, "days_push": 1076, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1058, forks 189 (observed 2026-08-28T04:03:24.972371+00:00)

## What it is
MonoHook is a C# library for Unity that hooks C# methods at runtime by patching JIT/AOT-compiled native code in memory, without modifying DLL files. It supports Unity Editor on Windows and Mac, Android (mono/il2cpp armv7a/armv8a), and Windows mono/il2cpp.

## Use cases
- hook UnityEditor.dll methods at runtime without modifying the dll
- patch C# method behavior in Unity at runtime
- redirect calls to a Unity engine method to custom code
- hook methods on Android il2cpp arm builds
- wrap original method calls while overriding behavior in Unity

## When to choose
- you need to modify Unity editor or engine behavior without editing or rebuilding DLLs
- you need runtime method hooking that preserves debugging and stack traces
- you target Unity mono or il2cpp on Windows, Mac, or Android

## When to avoid
- you need to hook non-Unity .NET applications
- you need a general-purpose detour library for native C/C++ code
- your Unity version changes the mono runtime in unsupported ways

## Facets
- artifact type: library
- maturity: maintenance
- function: security, developer-tools
- domain: developer-tools
- platform: windows, cpp, c
- tags: unity, method-hooking, runtime-patching, il2cpp, mono, jit, reverse-engineering, game-development, macos, android

## Member repositories
- Misaka-Mikoto-Tech/MonoHook (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:24.972371+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:57:32.291664+00:00, confidence not recorded.
  - readme: https://github.com/Misaka-Mikoto-Tech/MonoHook (fetched 2026-08-28T04:03:24.972371+00:00, sha 4460e34c94a6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
