Asset Store | Documentation 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. 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 Limitations Requires .Net 4.x API compatibility level AOT platforms such as IOS are not supported IL2CPP builds will fail at the moment. PC, Mac and Linux platforms are supported Demo 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. The code is written in game using the UI code editor and then compiled and executed to see how it performs. This example game demonstrates some of the compiler API's available as well as the script communication methods that Roslyn C# offers and it is also quite a fun challenge to try and create a simple AI that can reach the end of the maze consistently. All the code for this game is included in 2 fully commented C# scripts so you can clearly understand how it works. Need an code editor for your game? Check out our other asset asset 'InGame Code Editor' which is an advanced text input field with line numbering and fully customizable syntax highlighting for C# and many other languages. Check out the asset store or forum page for more info.