You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a BepInEx 5 plugin that allows you to run C# script files without compiling them to a DLL.
4
+
5
+
This plugin uses a modified version of the Mono Compiler Service (mcs) that allows to use most of C# 7 features.
6
+
The compiler relies on `System.Reflection.Emit` being present! As such, Unity games using .NET Standard API (i.e. has `netstandard.dll` in the `Managed` folder)
7
+
will not be able to run this plugin!
8
+
9
+
## Installation
10
+
11
+
Download the latest plugin version from releases and place it into `BepInEx/plugin` folder.
12
+
13
+
## Writing and installing scripts
14
+
15
+
**To install scripts**, create a `scripts` folder in the game's root folder and place raw `.cs` files (C# source code) into it.
16
+
**To remove scripts**, remove them from the `scripts` folder (or change file extension to `.cs.off`).
17
+
18
+
ScriptLoader will automatically load and compile all C# source code files it finds in the folder.
19
+
ScriptLoader will also automatically run any `static void Main()` methods it finds.
0 commit comments