Using Custom Scripts with REPOLib-Sdk
Unfortunately, custom scripts cannot be developed from inside the Unity editor. Instead, you have to write your scripts elsewhere:
- Create a new C# project for R.E.P.O. modding (see Developing Mods).
- Write your scripts in that project.
- Build the project and copy the output dll into your Unity project.
- If needed, copy the BepInEx dlls to your project.
- If you used the R.E.P.O. Project Patcher, these will already be in your project.
- Attach the scripts to your prefabs.
- Include the dll in the
Extra Files
field on yourMod
asset.
TIP
You can use a MSBuild target to automatically copy the dll on each build.