Class BasePlugin
Namespace: BepInEx.Unity.IL2CPP
Assembly: BepInEx.Unity.IL2CPP.dll
Syntax
public abstract class BasePlugin
Constructors
Declaration
protected BasePlugin()
Properties
Methods
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. |
Declaration
public abstract void Load()
Declaration
public virtual bool Unload()
Returns
Type | Description |
---|---|
System.Boolean |