Table of Contents

Class UnityAssetsScriptLoader

Namespace
MoonSharp.Interpreter.Loaders
Assembly
Assembly-CSharp.dll
public class UnityAssetsScriptLoader : ScriptLoaderBase, IScriptLoader
Inheritance
UnityAssetsScriptLoader
Implements
Inherited Members
Extension Methods

Constructors

UnityAssetsScriptLoader(Dictionary<string, string>)

public UnityAssetsScriptLoader(Dictionary<string, string> scriptToCodeMap)

Parameters

scriptToCodeMap Dictionary<string, string>

UnityAssetsScriptLoader(string)

public UnityAssetsScriptLoader(string assetsPath = null)

Parameters

assetsPath string

Fields

DEFAULT_PATH

public const string DEFAULT_PATH = "MoonSharp/Scripts"

Field Value

string

Methods

GetLoadedScripts()

public string[] GetLoadedScripts()

Returns

string[]

LoadFile(string, Table)

public override object LoadFile(string file, Table globalContext)

Parameters

file string
globalContext Table

Returns

object

ScriptFileExists(string)

public override bool ScriptFileExists(string file)

Parameters

file string

Returns

bool