A minimal mod that demonstrates the core MDB framework building blocks.
| Feature | API Used |
|---|---|
| Mod metadata | [Mod] attribute with Id, Name, Version, Author, Description |
| Lifecycle | ModBase.OnLoad(), ModBase.OnUpdate() |
| Logging | Logger.Info(), Logger.Warning(), Logger.Error(), Logger.Debug() |
| ImGui init | ImGuiManager.RegisterCallback(), ImGuiPriority |
| ImGui windows | ImGui.Begin() / End() with close button |
| ImGui widgets | Text, TextColored, TextDisabled, BulletText, Button, Checkbox, SliderFloat, InputText |
| ImGui layout | Separator, SameLine, Spacing, CollapsingHeader, SetNextWindowSize/Pos |
| ImGui style | PushStyleColor / PopStyleColor |
| ImGui overlay | No-titlebar window with ImGuiWindowFlags |
| IL2CPP bridge | Static field read via mdb_find_class / mdb_get_field / mdb_field_static_get_value |
dotnet build -c ReleaseCopy bin/Release/HelloWorld.dll into <GameDir>/MDB/Mods/.
- Launch the game with MDB injected.
- Press F2 to toggle ImGui input capture.
- The "Hello World Mod" window and overlay appear automatically.
HelloWorld/
├── HelloWorld.csproj # Project file (references MDB_Core)
├── HelloWorldMod.cs # Single source file — the entire mod
└── README.md # This file