Class UnityChainloader

The manager and loader for all plugins, and the entry point for BepInEx plugin system.

Inheritance
System.Object BaseChainloader<BaseUnityPlugin> UnityChainloader
Inherited Members
BaseChainloader<BaseUnityPlugin>.CurrentAssemblyName BaseChainloader<BaseUnityPlugin>.CurrentAssemblyVersion BaseChainloader<BaseUnityPlugin>.ToPluginInfo(TypeDefinition, String) BaseChainloader<BaseUnityPlugin>.HasBepinPlugins(AssemblyDefinition) BaseChainloader<BaseUnityPlugin>.PluginTargetsWrongBepin(PluginInfo) BaseChainloader<BaseUnityPlugin>.Plugins BaseChainloader<BaseUnityPlugin>.DependencyErrors BaseChainloader<BaseUnityPlugin>.PluginLoaded BaseChainloader<BaseUnityPlugin>.Finished BaseChainloader<BaseUnityPlugin>.DiscoverPluginsFrom(String, String) BaseChainloader<BaseUnityPlugin>.DiscoverPlugins() BaseChainloader<BaseUnityPlugin>.ModifyLoadOrder(IList<PluginInfo>) BaseChainloader<BaseUnityPlugin>.Execute() BaseChainloader<BaseUnityPlugin>.LoadPlugins(String[]) System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace: BepInEx.Unity.Mono.Bootstrap
Assembly: BepInEx.Unity.Mono.dll
Syntax
public class UnityChainloader : BaseChainloader<BaseUnityPlugin>

Properties

ConsoleTitle

Declaration
protected override string ConsoleTitle { get; }
Property Value
Type Description
System.String
Overrides
BepInEx.Bootstrap.BaseChainloader<BepInEx.Unity.Mono.BaseUnityPlugin>.ConsoleTitle

Instance

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

ManagerObject

The GameObject that all plugins are attached to as components.

Declaration
public static GameObject ManagerObject { get; }
Property Value
Type Description
GameObject

Methods

Initialize(String)

Declaration
public override void Initialize(string gameExePath = null)
Parameters
Type Name Description
System.String gameExePath
Overrides
BepInEx.Bootstrap.BaseChainloader<BepInEx.Unity.Mono.BaseUnityPlugin>.Initialize(System.String)

InitializeLoggers()

Declaration
protected override void InitializeLoggers()
Overrides
BepInEx.Bootstrap.BaseChainloader<BepInEx.Unity.Mono.BaseUnityPlugin>.InitializeLoggers()

LoadPlugin(PluginInfo, Assembly)

Declaration
public override BaseUnityPlugin LoadPlugin(PluginInfo pluginInfo, Assembly pluginAssembly)
Parameters
Type Name Description
PluginInfo pluginInfo
System.Reflection.Assembly pluginAssembly
Returns
Type Description
BaseUnityPlugin
Overrides
BepInEx.Bootstrap.BaseChainloader<BepInEx.Unity.Mono.BaseUnityPlugin>.LoadPlugin(BepInEx.PluginInfo, System.Reflection.Assembly)

StaticStart(String)

Declaration
[Obsolete("This method is public due to a limitation with Unity 4.x. DO NOT CALL", true)]
public static void StaticStart(string gameExePath = null)
Parameters
Type Name Description
System.String gameExePath