Class IL2CPPChainloader

Inheritance
System.Object BaseChainloader<BasePlugin> IL2CPPChainloader
Inherited Members
BaseChainloader<BasePlugin>.CurrentAssemblyName BaseChainloader<BasePlugin>.CurrentAssemblyVersion BaseChainloader<BasePlugin>.ToPluginInfo(TypeDefinition, String) BaseChainloader<BasePlugin>.HasBepinPlugins(AssemblyDefinition) BaseChainloader<BasePlugin>.PluginTargetsWrongBepin(PluginInfo) BaseChainloader<BasePlugin>.ConsoleTitle BaseChainloader<BasePlugin>.Plugins BaseChainloader<BasePlugin>.DependencyErrors BaseChainloader<BasePlugin>.PluginLoaded BaseChainloader<BasePlugin>.Finished BaseChainloader<BasePlugin>.DiscoverPluginsFrom(String, String) BaseChainloader<BasePlugin>.DiscoverPlugins() BepInEx.Bootstrap.BaseChainloader<BepInEx.Unity.IL2CPP.BasePlugin>.ModifyLoadOrder(IList<>) BaseChainloader<BasePlugin>.Execute() BaseChainloader<BasePlugin>.LoadPlugins(String[]) BepInEx.Bootstrap.BaseChainloader<BepInEx.Unity.IL2CPP.BasePlugin>.LoadPlugin(BepInEx.PluginInfo, Assembly)
Namespace: BepInEx.Unity.IL2CPP
Assembly: BepInEx.Unity.IL2CPP.dll
Syntax
public class IL2CPPChainloader : BaseChainloader<BasePlugin>

Properties

Instance

Declaration
public static IL2CPPChainloader Instance { get; set; }
Property Value
Type Description
IL2CPPChainloader

Methods

AddUnityComponent(Type)

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

AddUnityComponent<T>()

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.

Initialize(String)

Declaration
public override void Initialize(string gameExePath = null)
Parameters
Type Name Description
System.String gameExePath

InitializeLoggers()

Declaration
protected override void InitializeLoggers()
Overrides
BepInEx.Bootstrap.BaseChainloader<BepInEx.Unity.IL2CPP.BasePlugin>.InitializeLoggers()

LoadPlugin(PluginInfo, Assembly)

Declaration
public override BasePlugin LoadPlugin(PluginInfo pluginInfo, Assembly pluginAssembly)
Parameters
Type Name Description
PluginInfo pluginInfo
System.Reflection.Assembly pluginAssembly
Returns
Type Description
BasePlugin

Events

PluginLoad

Occurs after a plugin is instantiated and just before Load() is called.

Declaration
public event Action<PluginInfo, Assembly, BasePlugin> PluginLoad
Event Type
Type Description
System.Action<PluginInfo, System.Reflection.Assembly, BasePlugin>