Edit C++ With AI Inside Unreal Engine (Claude or ChatGPT)
Read, edit and generate the C++ behind a node without leaving Unreal Engine, with a Claude or ChatGPT assistant docked beside your Blueprint graph. Plus a six-part deep dive into how the editor is built: tabs, Slate UI, AI integration, completion, syntax highlighting and C++ parsing.
Most of the time you spend in C++ on an Unreal project is not deep work. It is the small stuff: glancing at what a node actually does, reading a built-in engine function, stubbing out a new Blueprint-callable function, fixing a line. Doing any of that today means leaving the editor for Visual Studio or Rider, reading it there, switching back. The AI Node Code Editor (shipped on FAB as Quick Code Editor) is a small C++ editor that docks right inside Unreal, shows the code behind a selected node, and puts a Claude or ChatGPT assistant (on your own API key) next to it, so you can explain, complete and generate code without leaving the engine. The video above is the feature walkthrough.
This page is also something more: a hub for how the editor is built. Building a code editor inside Unreal touches almost every interesting corner of editor extension, and each of those corners is a reusable technique in its own right. So rather than one long article, the build is split into six self-contained pieces below. Read the one you need; each stands alone, with real code.
What the editor does
Select a C++ function node in the Blueprint graph and its declaration and implementation
load into the docked panel, your own functions and engine functions alike. Ask the assistant
to explain a dense built-in, generate a BlueprintCallable function from a prompt, stub its
definition, fill the body, then save and build with Live Coding, and the new node appears in
the graph. The whole loop happens inside the engine. It is a deliberately lightweight editor
for quick reads and small edits beside the graph, not a replacement for a full IDE, and it
is an experimental beta, so expect some rough edges.
How it is built, in six parts
Each card below is a standalone article on one technique used to build the editor. They are not sequential steps; they are individual tools. Pick the one that matches what you are trying to do, whether that is your own plugin, a different editor tool, or just understanding how Unreal’s editor extends.
The pieces, in rough order from the outside in: the editor integration (commands, the docked tab, toolbar and menus); the Slate UI and settings the panel is made of; the AI assistant wired to both Claude and ChatGPT; the code completion and its token-saving context strategies; the C++ syntax highlighting; and the C++ parsing that locates declarations and definitions and generates stubs.
If you would rather use AI to write Unreal C++ than build the editor, see How to Use Claude or ChatGPT to Write C++ in Unreal Engine. And if you just want the finished tool, the AI Node Code Editor plugin packages everything here, with full documentation.
Frequently asked questions
- Does it work with both Claude and ChatGPT?
- Yes. The editor supports Claude (from Anthropic) and ChatGPT (from OpenAI). You choose the default provider and model in the plugin settings and can switch in the chat window.
- Do I need my own API key?
- Yes. The AI features run on your own key from Anthropic or OpenAI, so you are billed by the provider for what you use. The context controls exist partly to keep that token usage efficient.
- Does it replace Visual Studio or Rider?
- No, and it is not meant to. It is a lightweight in-editor C++ editor for quick reads and small edits next to the Blueprint graph. For advanced or complex changes you switch to a full IDE, and an open-in-explorer shortcut makes that easy.
- Does it work with Blueprints or only C++?
- It edits the C++ behind nodes. You select a C++ function node in the Blueprint graph and the editor loads its declaration and implementation; functions you generate and build become callable Blueprint nodes.
- Does it send my code to the AI provider?
- Only the context you choose. You decide between the visible code and your manual selection for chat, and pick a context window for inline completions, so nothing is sent beyond what you select.
- Can I learn how the editor itself is built?
- Yes. This page is a hub for six self-contained articles on the editor's internals: adding editor tabs and menus, composing Slate UI and settings, integrating Claude and ChatGPT, code completion and context strategies, C++ syntax highlighting, and parsing C++ functions. Each one stands on its own.