C++ node editor built on Dear ImGui with ImGui-style APIs. Handles pan, zoom, links, and selection while your code draws node contents.
Overview
ImGui Node Editor is a library you embed beside Dear ImGui to edit node-and-wire graphs. Its model is “you render nodes and pins; the editor handles interaction.” That includes placing nodes, dragging, scrolling, zooming, selection, context menus, and basic clipboard shortcuts.
Node and pin visuals are fully custom. Links use Bézier curves with highlighting for nodes, pins, and connections. Layout state can live in user context so graphs reload cleanly. The default theme resembles Unreal Engine 4 blueprint styling.
The code is meant as a foundation for blueprint-style tools and similar visual scripting UIs. It has been used inside the Spark CE engine blueprint editor. Sources copy into your tree like ImGui itself rather than shipping as a separate runtime service.
Example programs build with CMake on Linux, macOS, and Windows, using Win32/DirectX 11 or optional GLFW/OpenGL backends. It depends on Dear ImGui 1.80 or newer and C++14.
Key features
- ImGui-like node editor API
- Built-in pan, zoom, and drag
- Custom node and pin rendering
- Bézier link curves
- Selection and group rectangles
- Context menu support
- Cut, copy, paste, delete shortcuts
- Persisted node layout state
Use cases
- In-game blueprint editors
- Visual scripting prototypes
- Shader or logic graph tools
- Debug or tooling graph UIs
- Middleware inside ImGui applications