Class IL2CPPChainloader
Namespace: BepInEx.Unity.IL2CPP
  Assembly: BepInEx.Unity.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 | 
        
Declaration
protected override void InitializeLoggers()
  Overrides
BepInEx.Bootstrap.BaseChainloader<BepInEx.Unity.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 | 
        
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> |