Setting up your project
This is the full list of what the API gives you, one section for each part.
using BepInEx.Unity.Mono.Configuration;
using ObenseuerCore.Ui;
Things to know
- Reference two game files in your project. They are
Unity.TextMeshPro.dllandUnityEngine.UI.dll, both inObenseuer_Data\Managedin the game folder.ModUi.TitleandModUi.Textgive back aTextMeshProUGUI, andModUi.Buttongives back aUnityEngine.UI.Button. Without both references the compiler reports error CS0012, which means a type is defined in a file your project does not reference. - Add
using ObenseuerCore.Ui;to each file that uses the kit. KeyBindingtakes aKeyboardShortcutfrom BepInEx, so a file that calls it also needsusing BepInEx.Unity.Mono.Configuration;on BepInEx 6. On BepInEx 5, useusing BepInEx.Configuration;instead.- Only a BepInEx plugin can call
KeyBinding. A framework mod has no BepInEx reference, so it cannot call it. See framework mods.