mirror of
https://github.com/BepInEx/BepInEx.UnityInjectorLoader.git
synced 2026-11-17 11:11:05 -10:00
v1.2.0.0
UnityInjector loader for BepInEx
This is UnityInjector loader for BepInEx.
Requirements
- BepInEx 4.0+
All other dependencies (UnityInjector API, ExIni) are bundled in the loader.
Installation
-
Install BepInEx BepInEx
-
Put
BepInEx.UnityInjectorLoader.dllintoBepInExfolder -
Add and modify the following configuration options in
BepInEx\config.ini:[org.bepinex.plugins.unityinjectorloader] ; Specifies the UnityInjector folder ; The location can be absolute or relative to the game's root folder ; Thus specifying `Sybaris\UnityInjector` will cause the loader to look for UnityInjector folder in Sybaris folder unityInjectorLocation=UnityInjector ; Specify the entry point of UnityInjector (assembly, type, method) ; This is an example for C(O)M3D2 Entrypoint_AssemblyName=Assembly-CSharp Entrypoint_TypeName=SceneLogo Entrypoint_MethodName=Start -
Move UnityInjector plug-ins to the specified folder
-
Run the game
⚠️ NOTE ⚠️
You must remove the following files from
Sybarisfolder in order for this to work:
UnityInjector.dllExIni.dll- Any of UnityInjector patchers for Sybaris (i.e.
COM3D2.UnityInjector.Patcher.dll)
Building
To build, you will need the latest BepInEx.dll.
ExIni is bundled in the source, so no need to get it.
The original UnityInjector is also not needed, as the loader implements a wrapper around the public API.