
Secure native method patching for Unity's Mono runtime. Modify JIT-compiled methods at runtime with validation, restore support, and zero reflection overhead. Built for runtime engineers.Unity 2021.3+MonoStrata: Secure Runtime Method Patching for UnityPhase 1 Price + 10% Off at launchMonoStrata is a native patching engine for Unity’s Mono backend, enabling developers to intercept and reroute JIT-compiled methods at runtime with precision and safety. Built for systems engineers, diagnostics developers, and advanced Unity toolmakers, MonoStrata gives you low-level control without the risk of unsafe memory manipulation or brute-force DLL hacking.This is Phase 1 of a multi-phase system. It includes full support for:Secure 1:1 native method replacementBuilt-in hashing for pointer validationStrict patch filtering, user assemblies only (Assembly-CSharp, not UnityEngine)Lightweight runtime API and Validator(C#) and native enforcement layer (C++)Runtime restore system to revert patched methods on-demandSupport for Func<>, Action<>, and custom delegatesBuilt-In SafetyBlocks all Unity internal methods (UnityEngine, UnityEditor, etc.)... only user-defined methods in Assembly-CSharp-like assemblies are eligible for patchingNative patching locked behind secure validationThe native runtime cannot patch anything without validation from the interop, enforcing multiple safety layers:Requires a cryptographically hashed value generated by the interopPatching is only allowed for direct delegate references (no reflection, no indirect calls)The native runtime is non-functional without the interop layer; this guarantees:Runtime and interop are inseparablePatching cannot proceed without .NET-side safety checksRuntime usage is tied to safe, verified entry points onlyAll patch operations include structural checks, signature verification, and fallback handling to prevent access violations or instabilityPatched methods can be reverted at any time, restoring the original function pointer with full integrityPackage IncludesFully documented APINative DLL for runtime executionUnity interop layer with logging and validationExample MonoBehaviour for integrationPDF manual covering validation, patching, restore lifecycle, and licenseNative method patching for Unity Mono (no reflection or detours)Supports Func<>, Action<>, and custom delegate typesRestore support, reverts patched methods at runtimeIncludes diagnostic logging system for patch attempts and resultsComes with full PDF manual and runtime examplesWindows-only support (Editor/Player, 64-bit)Tested with:Unity 2021.3 LTSUnity 2022.xUnity 6000.0.31f1 (Unity 6 beta)Backend Requirement:• Mono (Not compatible with IL2CPP)