Home Game Dev Unity Assets Unity Tools Roslyn C# - Runtime Compiler v2.3.0

Roslyn C# - Runtime Compiler v2.3.0

931 Views Stock 946 2025-12-23

Details

 Roslyn C# - Runtime Compiler v2.3.0 enables runtime compilation and execution of C# scripts using the Roslyn compiler, allowing developers to dynamically load assemblies and C# scripts into their Unity projects. This feature supports in-game programming and easy integration of modding capabilities. The resource pack includes built-in code security verification, enabling developers to define security restrictions such as forbidden namespaces and types, thus ensuring safer execution of third-party or user-generated code. When security checks fail, a detailed report is generated, listing all illegal types and their usage instances in the external code. The compiler supports the latest C# language features, offers fast execution performance (matching native game scripts after compilation), and provides a simple, well-documented API for reflection on assemblies, types, and instances. It also supports non-concrete object communication via script proxies, automatic type construction using appropriate methods (e.g., AddComponent, CreateInstance, new), and cached member tables for efficient reflection. All scripts and examples are organized within namespaces to prevent naming conflicts, and the pack includes fully commented partial C# source code along with comprehensive .chm API documentation for easy reference. The resource pack is compatible with Unity 2019.4.40 or higher and is available for free. 
2025-12-23 00:00:00-update version:Roslyn C# - Runtime Compiler v2.3.0