Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft

ImGuiMC Mod FAQ

10 questions players actually ask, answered.

How do I start making a custom ImGui panel in my mod?
Hook into the render frame event provided by ImGuiMC, then call ImGui drawing functions inside your event handler. The mod handles all the setup—you just write the UI code directly.
Can I use ImGui without creating a separate mod?
No, ImGuiMC is a library mod that other mods depend on to use ImGui. You need to create a mod that adds ImGuiMC as a dependency to access its features.
What's the difference between the start-of-frame and end-of-frame render events?
Start-of-frame fires before Minecraft renders the game world, useful for debug overlays that sit on top. End-of-frame fires after, which is better for UI that should appear behind certain elements.
Do I need to install native ImGui binaries separately?
No, ImGuiMC bundles everything you need—no extra native files or setup required. The mod handles all native bindings internally.
How do I load a custom font file into an ImGui panel?
Use the custom font event system to register your TrueType (.ttf) file, then reference it by name in your ImGui drawing code. The mod loads and caches the font automatically.
Can I display Minecraft textures or custom images in ImGui windows?
Yes, ImGuiMC supports GpuTexture and GpuTextureView objects directly as texture sources. Pass them to ImGui's texture drawing functions to render them in your panels.
Will ImGui panels slow down my game?
ImGui is designed for lightweight UI, but performance depends on how many draw calls your panels make. Keep panel updates efficient and avoid redrawing complex textures every frame.
Can multiple mods use ImGuiMC at the same time?
Yes, any mod can hook into ImGuiMC's render events independently. Each mod's panels draw in the order their events fire, so layering depends on event registration order.
What happens if I try to draw ImGui elements outside a render event?
ImGui state won't be initialized and your draw calls will fail silently or crash. Always register your drawing code inside the provided render frame hooks.
Can I use ImGui to create in-game menus that persist across game sessions?
ImGuiMC handles the drawing only—you need to write your own code to save and load panel state. The mod provides the UI framework, not automatic persistence.