Class BaseUnityPlugin
The base plugin type that is used by the BepInEx plugin loader.
Namespace: BepInEx.Unity.Mono
Assembly: BepInEx.Unity.Mono.dll
Syntax
public abstract class BaseUnityPlugin : MonoBehaviour
Constructors
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
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 |
Information about this plugin as it was loaded.
Declaration
public PluginInfo Info { get; }
Property Value
Type | Description |
---|---|
PluginInfo |
Logger instance tied to this plugin.
Declaration
protected ManualLogSource Logger { get; }
Property Value
Type | Description |
---|---|
ManualLogSource |