OpenClaw Unreal Engine
by @droidhackzor
Integrate OpenClaw with Unreal Engine 5.x projects, editors, and plugins. Use when an agent needs to inspect or scaffold Unreal Engine automation, create or...
clawhub install openclaw-unreal-engineπ About This Skill
name: unreal-engine description: Integrate OpenClaw with Unreal Engine 5.x projects, editors, and plugins. Use when an agent needs to inspect or scaffold Unreal Engine automation, create or modify UE5 C++ plugins, expose Blueprint-callable nodes, connect OpenClaw to the editor or a running game, drive editor-side tasks through Unreal Remote Control, or design/version-adapted workflows for Unreal Engine 5.0 and newer.
Unreal Engine
Overview
Use this skill to connect OpenClaw-style agent workflows to Unreal Engine 5.0+ in a way that survives engine minor-version differences. In the evaluated Unreal Engine source repo, built-in RemoteControl, HttpBlueprint, JsonBlueprintUtilities, PythonScriptPlugin, and WebSockets support are already present, so prefer composition over engine patching.
Prefer these integration paths:
1. Editor automation path: Use Unreal Remote Control for editor-time inspection and automation.
2. Blueprint low-code path: Compose HttpBlueprint + JsonBlueprintUtilities for Blueprint-driven request/response workflows.
3. Project/plugin path: Add a lightweight plugin that exposes OpenClaw-specific transport, auth, session, and task hooks to C++ and Blueprints.
Do not assume a single Unreal API surface works identically across all 5.x releases. Keep compile-time dependencies minimal and isolate version-sensitive code.
Integration strategy
1. Pick the right control plane first
Choose based on the task:
2. Keep version compatibility broad
For UE 5.0+
Core, CoreUObject, Engine, HTTP, Json, JsonUtilities, WebSockets.3. Treat Blueprint support as a first-class requirement
When the user mentions Blueprints, do not stop at C++ plumbing. Provide:
UBlueprintFunctionLibrary nodes for one-shot operationsUGameInstanceSubsystem or UEngineSubsystem for persistent connections/stateDefault architecture
Use this mental model unless the project requires something else:
Task patterns
Pattern A: Editor-time Blueprint and asset tasks
Use when the goal is to:
Approach:
1. Ensure the project enables Unreal Remote Control. 2. Expose only the objects/functions/properties needed. 3. Have OpenClaw call the Remote Control HTTP/WebSocket API. 4. Keep destructive/editor-mutating actions explicit and scoped.
Good fit:
Pattern B: Runtime or gameplay-adjacent tasks
Use when the goal is to:
Approach:
1. Add a runtime plugin. 2. Put transport in a subsystem or manager UObject. 3. Expose simple Blueprint nodes. 4. Return structured results and explicit errors.
Good fit:
Workflow
Follow this sequence.
Step 1: Identify the integration target
Determine:
If the source repository is not accessible, say so clearly and proceed with a standards-based scaffold.
Step 2: Inspect the project structure
For an Unreal project, look for:
*.uprojectSource/Plugins/.Build.cs filesIf you are generating a new plugin, prefer placing it under Plugins/.
Step 3: Choose a plugin shape
Default to a single runtime module when possible.
Create extra modules only if needed:
Step 4: Expose Blueprint surfaces
Minimum useful surface:
If the schema is immature, prefer these stable nodes first:
ConnectToOpenClaw(Url, ApiKey)DisconnectFromOpenClaw()SendTaskJson(TaskJson)GetConnectionStatus()Then layer typed nodes later.
Step 5: Keep JSON contracts explicit
Define small message envelopes like:
{
"id": "task-123",
"type": "run_blueprint_task",
"task": "summarize_scene",
"payload": {
"target": "/Game/Maps/TestMap"
}
}
Return results like:
{
"id": "task-123",
"ok": true,
"result": {
"summary": "..."
},
"error": null
}
Keep these envelopes version-neutral and avoid leaking Unreal internals into the protocol unless necessary.
Step 6: Handle UE version differences conservatively
Prefer defensive code:
.cpp files.ENGINE_MAJOR_VERSION / ENGINE_MINOR_VERSION checks when required.Blueprint guidance
When asked for βall types of tasks including blueprints,β interpret that as at least:
Prefer these Unreal patterns:
UBlueprintFunctionLibrary for stateless convenience methodsUGameInstanceSubsystem for persistent connection lifecycleDECLARE_DYNAMIC_MULTICAST_DELEGATE_* for Blueprint eventsAvoid over-engineering the first pass. A minimal plugin that compiles across 5.0+ beats a feature-rich plugin that only works on one minor version.
Remote Control guidance
Use Remote Control when the task is fundamentally editor-side. Expect HTTP/WebSocket-based control of exposed properties and functions. Do not describe it as a packaged-game runtime automation layer unless the project specifically wires that up.
If the user asks to manipulate Blueprints broadly, separate the request into:
Suggested repository deliverables
When scaffolding an Unreal integration, prefer these outputs:
references/architecture.md β integration decisions and tradeoffsreferences/blueprints.md β Blueprint support patternsassets/OpenClawUnrealPlugin/ β drop-in UE plugin scaffoldValidation checklist
Before claiming success, verify:
.Build.cs includes required dependencies onlyResources
references/
Read these when needed:
references/architecture.md for integration choices and compatibility rulesreferences/blueprints.md for Blueprint-facing API patternsreferences/remote-control-notes.md for editor automation guidancereferences/openclaw-api-contract.md for the default /api/unreal/task request/response schemareferences/repo-evaluation-notes.md for the verified target repo structure and integration implicationsreferences/engine-builtins.md for built-in Unreal systems to compose with before adding custom codereferences/install-strategy.md for engine-source vs project-plugin deployment choicesreferences/integration-map.md for mapping OpenClaw tasks onto confirmed engine systemsreferences/sample-blueprint-flow.md for built-in Blueprint HTTP/JSON wiringreferences/sample-python-flow.md for editor Python automation patternsreferences/openclaw-server-notes.md for the OpenClaw-side handler boundaryreferences/sample-uproject-plugin-config.md for project-level plugin enablementreferences/openclaw-server-handler-example.md for a concrete /api/unreal/task handler sketchreferences/remote-control-extension-points.md for repo-observed Remote Control / WebRemoteControl source touchpointsreferences/webremotecontrol-route-observations.md for concrete route/request/response observations from the inspected engine branchscripts/
Use scripts/install_plugin.sh to copy the scaffold plugin into a target Unreal project.
assets/
Use assets/OpenClawUnrealPlugin/ as the drop-in plugin scaffold for UE 5.0+ projects.