Unreal C#: two-track plan (v0.1, 2026-10-24)¶
Owner: Andrew David Jones-Gaffney. Author: Clahadore (Claude). Status: DRAFT for council review (Codex gpt-6-astra and Grok 4.7; Gemini seats unavailable) BEFORE any code.
Goal¶
First-class C# gameplay programming for Unreal Engine 5.8, the way UnrealEngine-Angelscript does it for AngelScript. Andrew's C#-first policy applies to game work; C++ remains the engine layer.
Workflow requirements (Andrew): - Code viewing and navigation open directly in Cursor and Antigravity, not Visual Studio. "Open in IDE", jump-to-source, project and workspace generation, and debugging attach. - Building is AI-driven: Claude Code Game Studios (1.2.0), the Blueprints MCP (Ultimate Engine CoPilot / BpGeneratorUltimate, "Unreal Engine Pro Tools") and the Epic MCP. - C# examples and templates use his example themes: Kingdom Hearts, One Piece, Chiefs, Heat, Drake (no lyrics).
Two tracks, in parallel (Andrew's decision)¶
Track A: plugin¶
Extend UnrealSharp (MIT, C# for UE5 on modern .NET with hot reload) to UE 5.8 as a project/engine plugin. First milestone: a C# Actor plus a C# component that ticks, exposes UPROPERTYs to Blueprints, hot-reloads, and runs in PIE with 2 clients.
Track B: true fork¶
An Angelscript-style engine fork of 5.8 with an embedded .NET runtime and deeper integration than a plugin can reach: - script-level hot reload without a module reload - C# classes as first-class UClasses at editor time - a debugger with source maps - editor UI for C# assets - packaging and cooking support
The first milestone is the same as Track A's, so the two can be compared head to head.
Shared modules, built once and used by both¶
- Source-code accessor for Cursor and Antigravity: UE's
ISourceCodeAccessormodule pattern, VS-Code-family workspace generation,.vscode/launch.jsonfor C# and C++ debugging, and "Open in IDE" plus jump-to-source. - Agent workflow kit: Claude Code Game Studios agents and skills for C#, with Blueprints-MCP and Epic-MCP tool recipes for generating C# gameplay, binding it to Blueprints, and running PIE checks.
- C# API conformance suite: the same tests run against Track A and Track B (reflection exposure, GC and lifetime, replication, hot reload, performance budgets).
Milestones¶
| M | Deliverable | Gate |
|---|---|---|
| M0 | Research: UnrealSharp's current state and 5.8 gaps; how the Angelscript fork is built (engine diffs, scripting module, hot reload, editor hooks); .NET hosting in UE (CoreCLR via hostfxr); licensing (EULA allows source forks; keep the fork private) | Council review of this plan |
| M1 | Shared module 1 (Cursor/Antigravity accessor) on stock 5.8 | Opens and jumps to source in both IDEs |
| M2 | Track A milestone | Conformance suite subset green |
| M3 | Track B: fork skeleton (CoreCLR hosted in the engine, one C# UClass) | Builds and runs the same subset |
| M4 | Head-to-head comparison against the conformance suite; then decide whether to keep both or converge | Council |
Constraints¶
- Engine builds are huge: about 100+ GB of disk and lots of RAM. Build on the gaming PC (RTX 4090, 47 GB) or the streaming PC (94 GB), never on greatroom (commit exhaustion on 2026-10-24). The bedroom PC stays free for gaming.
- The fork stays private (Epic EULA). Track A can be public if its license allows.
- Language policy: C# for gameplay and tools, C++ only for engine glue.
Open questions for the council¶
- Is UnrealSharp the right Track A base in Oct 2026 (maintenance, 5.6–5.8 support, hot reload, NativeAOT)?
- What exactly did UnrealEngine-Angelscript change in the engine? Which of those changes does a C# fork need?
- CoreCLR hosting inside the editor: AssemblyLoadContext hot reload, GC interaction with UObject GC, threading.
- A minimal viable Cursor/Antigravity accessor: what UE expects from
ISourceCodeAccessor, and how to attach a C# debugger to a hosted CoreCLR. - Is running both tracks in parallel worth the cost? Where should the shared code live so neither track blocks the other?