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
scriptToCodeMapDictionary<string, string>
UnityAssetsScriptLoader(string)
public UnityAssetsScriptLoader(string assetsPath = null)
Parameters
assetsPathstring
Fields
DEFAULT_PATH
public const string DEFAULT_PATH = "MoonSharp/Scripts"
Field Value
Methods
GetLoadedScripts()
public string[] GetLoadedScripts()
Returns
- string[]
LoadFile(string, Table)
public override object LoadFile(string file, Table globalContext)
Parameters
Returns
ScriptFileExists(string)
public override bool ScriptFileExists(string file)
Parameters
filestring