VtolMod

Assembly: ModLoader.Framework.dll

Namespace: ModLoader.Framework

Inherits from: UnityEngine.MonoBehaviour

Description

This is the class you need to inherit so that the Mod Loader can spawn your mod. You will also need the attribute ItemId

Source Code

Methods

UnLoad Called when the user Unloads your mod

Example

using ModLoader.Framework; using ModLoader.Framework.Attributes; namespace Docs; [ItemId("docs.vtolmod-example")] public class Main : VtolMod { // Gets called when your mod is loaded public void Awake() { Debug.Log("Hello World!"); } // Gets called when your mod is unloaded public override void UnLoad() { Debug.Log("Bye World!"); } }