Writing a Plugin class
The following Plugin class will allow BepInEx to load and handle your compiled assembly as a plugin
using BepInEx;
using BepInEx.Unity.IL2CPP;
namespace MyFirstPlugin;
[BepInPlugin("NewbiePluginAuthor.MyFirstPlugin", "MyFirstPlugin", "1.0.0")]
public class Plugin : BasePlugin
{
public override void Load()
{
// Plugin startup logic
Log.LogInfo("MyFirstPlugin is loaded!");
}
}Explaining how this work
Last updated
Was this helpful?