Store settings to compile C# scripts to a dll plugin when double click this asset. More...
Inherits ScriptableObject.
Public Member Functions | |
void | Build () |
Compile the C# scripts to build a dll at the path . More... | |
Static Public Member Functions | |
static CompilerResults | BuildDll (string path, string[] scripts, string[] references=null, string[] symbols=null, bool documentation=false, bool debug=false) |
Compile the C# scripts from file paths to build a dll. More... | |
static CompilerResults | BuildDll (string[] sources, string path, string[] references=null, string[] symbols=null, bool documentation=false, bool debug=false) |
Compile the C# code sources to build a dll. More... | |
Public Attributes | |
bool | overwrite |
The flag if to overwrite the existing file silently, otherwise show a warning dialog. More... | |
string | path = "plugin.dll" |
The dll file path. More... | |
bool | debug |
The flag if to include debug information, a mdb file, beside the built dll. More... | |
bool | documentation |
The flag if to generate XML documentation beside the built dll. More... | |
List< MonoScript > | scripts |
The C# scripts to compile. More... | |
List< string > | symbols |
The defined preprocessor symbols. More... | |
List< string > | references |
The external referenced assemblies. More... | |
Store settings to compile C# scripts to a dll plugin when double click this asset.
Show a TreeView
to select scripts
right after created or by array context menu "Select". Show a TreeView
to select defined preprocessor symbols
by array context menu "Define". It will automatically scan and show the symbols used in the selected scripts. This will find any loaded assembly references by default. And able to add external references
by context menu "Add", or directly drag a dll to the text field. The operations above can also be done by the asset context menu from the Inspector title.
3
|
static |
Compile the C# scripts
from file paths to build a dll.
path | Dll path. |
scripts | C# script file paths. |
references | Referenced assembly paths. |
symbols | Defined preprocessor symbols. |
documentation | If to generate XML documentation. |
debug | If to include debug information. |
|
static |
Compile the C# code sources
to build a dll.
sources | C# code sources. |
path | Dll path. |
references | Referenced assembly paths. |
symbols | Defined preprocessor symbols. |
documentation | If to generate XML documentation. |
debug | If to include debug information. |
void Build | ( | ) |
Compile the C# scripts
to build a dll at the path
.
bool overwrite |
The flag if to overwrite the existing file silently, otherwise show a warning dialog.
string path = "plugin.dll" |
The dll file path.
bool debug |
The flag if to include debug information, a mdb file, beside the built dll.
bool documentation |
The flag if to generate XML documentation beside the built dll.
List<MonoScript> scripts |
The C# scripts to compile.
List<string> symbols |
The defined preprocessor symbols.
List<string> references |
The external referenced assemblies.