Overview of HybridCLR
mainHybridCLR is a high-performance, low-memory, near-zero-cost C# hot-update solution for Unity across all platforms. It transforms the standard IL2CPP AOT (Ahead-of-Time) runtime into a hybrid AOT + Interpreter runtime. This allows for native support of dynamic assembly loading, enabling hot updates on Android, iOS, Consoles, WebGL, and other IL2CPP-supported platforms.
Key benefits include:
- Seamless Workflow: Highly compatible with Unity's workflow, supporting
MonoBehaviour,ScriptableObject, andDOTS. - Full C# Support: Supports generics, reflection, inheritance, and multi-threading (including
volatile,ThreadStatic, andasync Task) without requiring special code generation. - High Performance: Uses a highly efficient register interpreter and a unique Differential Hybrid Execution (DHE) technology that runs unmodified functions in AOT mode and modified/new functions in interpreter mode.
- Memory Efficiency: Hot-update classes occupy the same memory space as standard C# classes.