Roslyn C# - Runtime Compiler

$19
Publisher Trivial Interactive
File size 8.82MB
Number of files 142
Latest version 1.8.1
Latest release date 2023-08-11 10:48:16
First release date 2019-04-05 12:02:08
Supported Unity versions 2018.4.2 or higher
*Requires .Net 4.x or .Net standard API compatibility level

Roslyn C# allows runtime loading of assemblies and C# scripts using the Roslyn compiler making it easy to add modding support or in-game programming to your project. In addition, Roslyn C# also includes code security verification that allows you to specify a number of security restrictions that loaded code must adhere to including illegal namespaces and types. This makes it much safer to load 3rd party code from unknown sources.


Includes a small programming based game where the objective is to navigate a mouse out of a maze by writing code that performs the direction decision making.



Features
-Compile and run C# scripts at runtime
-Leverage the latest C# language features using the Roslyn C# compiler
-Fast execution. Once compiled, external scripts will run as fast as game scripts
-Allows modding support to be added easily
-Code security validation means that unsafe code can be identified and discarded
-Code security generates a detailed report upon failure containing information about illegal types used and every usage occurrence in the external code
-Simple and easy to use API for assembly, type and instance reflection
-Support for non-concrete communication using script proxies
-Automatic type construction using correct method (AddComponent, CreateInstance, new)
-Cached member tables for quick reflection
-All scripts and example are organised into namespaces to avoid type name clashes
-Fully commented partial C# source code included
-Comprehensive .chm documentation of the API for quick and easy reference

Platforms
Support for PC, Mac and Linux platforms.

Roslyn C# may work on other platforms without issue however we will only offer support for the officially supported platforms.



Android
Android is not officially supported however, many users have had success getting the asset to run on Android by following these steps

Forum | Discord | Documentation | Support | Website

Top Publisher Assets