Unity插件 – 运行时编译器  Roslyn C# – Runtime Compiler

2024.01.13 Updated plug-in version

File size: 8.5 MB

Version: 1.8.1

Original Unity Version: 2019.4.40 or higher

Roslyn C#allows you to use the Roslyn compiler to load assemblies and C#scripts at runtime, making it easy to add mod support or in-game programming to your projects. In addition, Roslyn C#includes code safety verification that allows you to specify some of the security restrictions that must be followed by loading code, including illegal namespaces and types. This makes it safer to load 3rd party code from unknown sources.

includes a programming-based mini game whose goal is to navigate the mouse out of the maze by writing code to perform directional decisions.

features-Compile and run C#scripts at runtime-Use the Roslyn C#compiler to leverage the latest C#language features-Fast execution. After compilation, external scripts will run like game scripts-allowing easy addition of module support-Code safety verification means unsafe code can be identified and discarded-Code safety generates detailed reports on failure, including information on illegal types used and usage in each external code-Simple and easy-to-use API for assembly, type, and instance reflection-Support non-specific communication using script proxies-Use the correct method Automatic type construction for (AddComponent, CreateInstance, New)-cached member tables for quick reflection-all scripts and examples organized into namespaces to avoid type name conflicts-Part of the C#source code with full annotations-Comprehensive.chm documentation for the API for quick and easy reference to the

and

platform that supports PC, Mac and Linux platforms.

Roslyn C#can run normally on other platforms, but we will only provide support for officially supported platforms.