mirror of
https://github.com/BepInEx/BepInEx.UnityInjectorLoader.git
synced 2026-11-16 11:11:04 -10:00
1.3 KiB
1.3 KiB
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 the following configuration option to
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
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.