Class BasePlugin

Inheritance
System.Object BasePlugin
Inherited Members
System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone() System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ToString()
Namespace: BepInEx.Unity.IL2CPP
Assembly: BepInEx.Unity.IL2CPP.dll
Syntax
public abstract class BasePlugin

Constructors

BasePlugin()

Declaration
protected BasePlugin()

Properties

Config

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

Log

Declaration
public ManualLogSource Log { get; }
Property Value
Type Description
ManualLogSource

Methods

AddComponent<T>()

Add a Component (e.g. MonoBehaviour) into Unity scene. Automatically registers the type with Il2Cpp Type system if it isn't already.

Declaration
public T AddComponent<T>()
    where T : Il2CppObjectBase
Returns
Type Description
T
Type Parameters
Name Description
T

Type of the component to add.

Load()

Declaration
public abstract void Load()

Unload()

Declaration
public virtual bool Unload()
Returns
Type Description
System.Boolean