Class IL2CPPChainloader
Namespace: BepInEx.IL2CPP
Assembly: BepInEx.IL2CPP.dll
Syntax
public class IL2CPPChainloader : BaseChainloader<BasePlugin>
Properties
Declaration
public static IL2CPPChainloader Instance { get; set; }
Property Value
Type | Description |
---|---|
IL2CPPChainloader |
Methods
Register and add a Unity Component (for example MonoBehaviour) into BepInEx global manager. Automatically registers the type with Il2Cpp type system if it isn't initialised already.
Declaration
public static Il2CppObjectBase AddUnityComponent(Type t)
Parameters
Type | Name | Description |
---|---|---|
System.Type |
t |
Type of the component to add |
Returns
Type | Description |
---|---|
Il2CppObjectBase |
Register and add a Unity Component (for example MonoBehaviour) into BepInEx global manager. Automatically registers the type with Il2Cpp type system if it isn't initialised already.
Declaration
public static T AddUnityComponent<T>()
where T : Il2CppObjectBase
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
Type of the component to add. |
Declaration
public override void Initialize(string gameExePath = null)
Parameters
Type | Name | Description |
---|---|---|
System.String |
gameExePath |
Overrides
BepInEx.Bootstrap.BaseChainloader<BepInEx.IL2CPP.BasePlugin>.Initialize(System.String)
Declaration
protected override void InitializeLoggers()
Overrides
BepInEx.Bootstrap.BaseChainloader<BepInEx.IL2CPP.BasePlugin>.InitializeLoggers()
Declaration
public override BasePlugin LoadPlugin(PluginInfo pluginInfo, Assembly pluginAssembly)
Parameters
Type | Name | Description |
---|---|---|
PluginInfo |
pluginInfo |
|
System.Reflection.Assembly |
pluginAssembly |
Returns
Type | Description |
---|---|
BasePlugin |
Overrides
BepInEx.Bootstrap.BaseChainloader<BepInEx.IL2CPP.BasePlugin>.LoadPlugin(BepInEx.PluginInfo, System.Reflection.Assembly)