
MonoDetour
Easy and convenient .NET detouring library, powered by MonoMod.RuntimeDetour.
Last updated | 21 hours ago |
Total downloads | 8995 |
Total rating | 1 |
Categories | Libraries |
Dependency string | MonoDetour-MonoDetour-0.5.3 |
Dependants | 2 other packages depend on this package |
This mod requires the following mods to function

BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
MonoDetour
Easy and convenient .NET detouring library, powered by MonoMod.RuntimeDetour.
- GitHub: https://github.com/MonoDetour/MonoDetour
- Documentation: https://monodetour.github.io/
Note: MonoDetour is a library for developers. By itself, it does the following once it's loaded by the runtime:
ILHook
s (includes HarmonyX transpilers) will get MonoDetour's CIL analysis on target method compilation when anInvalidProgramException
is thrown- MonoMod's
ILLabel
s won't cause InvalidCastExceptions in someMono.Cecil.Cil.Instruction
methods, such asToString
.
Note: do not depend on this package directly. Instead depend on MonoDetour_BepInEx_5
as it will integrate MonoDetour's logger with BepInEx. Otherwise logs might not show up due to some BepInEx quirks with MonoDetour's colored logs.
Why Use MonoDetour?
MonoDetour is an alternative to HarmonyX or MonoMod.RuntimeDetour for detouring. It attempts to improve on the hooking experience as much as possible. See https://monodetour.github.io/getting-started/why-monodetour/ to learn more.