Class BaseUnityPlugin

The base plugin type that is used by the BepInEx plugin loader.

Inheritance
System.Object BaseUnityPlugin
Namespace: BepInEx.Unity.Mono
Assembly: BepInEx.Unity.Mono.dll
Syntax
public abstract class BaseUnityPlugin : MonoBehaviour

Constructors

BaseUnityPlugin()

Create a new instance of a plugin and all of its tied in objects.

Declaration
protected BaseUnityPlugin()
Exceptions
Type Condition
System.InvalidOperationException

BepInPlugin attribute is missing.

Properties

Config

Default config file tied to this plugin. The config file will not be created until any settings are added and changed, or Save() is called.

Declaration
public ConfigFile Config { get; }
Property Value
Type Description
ConfigFile

Info

Information about this plugin as it was loaded.

Declaration
public PluginInfo Info { get; }
Property Value
Type Description
PluginInfo

Logger

Logger instance tied to this plugin.

Declaration
protected ManualLogSource Logger { get; }
Property Value
Type Description
ManualLogSource