Table of Contents

Class ModManager

Namespace
VoxelPlayground.Mod
Assembly
GamePlay.dll
public class ModManager : Singleton<ModManager>
Inheritance
object
ModManager
Inherited Members
Extension Methods

Fields

loadedDLLs

public static HashSet<string> loadedDLLs

Field Value

HashSet<string>

metaAppId

public string metaAppId

Field Value

string

modErrors

public Dictionary<string, string> modErrors

Field Value

Dictionary<string, string>

modInfos

public List<ModInfo> modInfos

Field Value

List<ModInfo>

modIOObject

public GameObject modIOObject

Field Value

GameObject

modIOPrefab

public GameObject modIOPrefab

Field Value

GameObject

modsPath

public static string modsPath

Field Value

string

Methods

Awake()

protected override void Awake()

CloseModBrowser()

[Button]
public void CloseModBrowser()

FindAssetInMod<T>(string, IResourceLocator)

public IResourceLocation FindAssetInMod<T>(string key, IResourceLocator modLocator)

Parameters

key string
modLocator IResourceLocator

Returns

IResourceLocation

Type Parameters

T

GetLoadedMod(Mod)

public ModInfo GetLoadedMod(Mod mod)

Parameters

mod Mod

Returns

ModInfo

GetLoadedMod(string)

public ModInfo GetLoadedMod(string modId)

Parameters

modId string

Returns

ModInfo

GetModID(string)

public static string GetModID(string installPath)

Parameters

installPath string

Returns

string

HideModIO()

public void HideModIO()

IsBytesLocation(string)

public bool IsBytesLocation(string key)

Parameters

key string

Returns

bool

IsItemConfigLocation(string)

public bool IsItemConfigLocation(string key)

Parameters

key string

Returns

bool

IsModInfoLocation(string)

public bool IsModInfoLocation(string key)

Parameters

key string

Returns

bool

IsModManifestLocation(string)

public bool IsModManifestLocation(string key)

Parameters

key string

Returns

bool

IsPrefabLocation(string)

public bool IsPrefabLocation(string key)

Parameters

key string

Returns

bool

IsSceneConfigLocation(string)

public bool IsSceneConfigLocation(string key)

Parameters

key string

Returns

bool

IsTextAssetLocation(string)

public bool IsTextAssetLocation(string key)

Parameters

key string

Returns

bool

LoadMod(string)

public void LoadMod(string modPath)

Parameters

modPath string

LoadMods_PersistentData()

[Button]
public void LoadMods_PersistentData()

OpenModBrowser()

[Button]
public void OpenModBrowser()

ProcessProxies(GameObject)

public static void ProcessProxies(GameObject root)

Parameters

root GameObject

SpawnModIO(Action)

[Button]
public void SpawnModIO(Action onClose = null)

Parameters

onClose Action

UnloadMod(string)

public void UnloadMod(string modID)

Parameters

modID string