Wanzyee Studio

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...
 

Detailed Description

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

Member Function Documentation

static CompilerResults BuildDll ( string  path,
string[]  scripts,
string[]  references = null,
string[]  symbols = null,
bool  documentation = false,
bool  debug = false 
)
static

Compile the C# scripts from file paths to build a dll.

Parameters
pathDll path.
scriptsC# script file paths.
referencesReferenced assembly paths.
symbolsDefined preprocessor symbols.
documentationIf to generate XML documentation.
debugIf to include debug information.
Returns
The compiler results to check if success.
static CompilerResults BuildDll ( string[]  sources,
string  path,
string[]  references = null,
string[]  symbols = null,
bool  documentation = false,
bool  debug = false 
)
static

Compile the C# code sources to build a dll.

Parameters
sourcesC# code sources.
pathDll path.
referencesReferenced assembly paths.
symbolsDefined preprocessor symbols.
documentationIf to generate XML documentation.
debugIf to include debug information.
Returns
The compiler results to check if success.
void Build ( )

Compile the C# scripts to build a dll at the path.

Member Data Documentation

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.