Pages
Mod Loader
Assembly: ModLoader.dll
Namespace: ModLoader
Inherits from: UnityEngine.MonoBehaviour
Description
This can be used to fetch the locally developed mods by the current player. These mods are located in the game folder at VTOL VR\@Mod Loader\Mods
Methods
FindLocalItems | Returns the local mods the user has located in VTOL VR\@Mod Loader\Mods |
Example
using ModLoader;
namespace Docs;
[ItemId("docs.modloader-example")]
public class Main : VtolMod
{
public void Awake()
{
foreach (var item in ModLoader.Instance.FindLocalItems())
{
// Prints the names of all the local mods to the logs
Debug.Log(item.Title);
}
}
public override void UnLoad() { }
}