ANTIGRAVITY LABJP
Articles/Antigravity Basics
Antigravity Basics/2026-05-23Advanced

Driving Unreal Engine Projects from Antigravity — Patterns from Building an Art Installation

Attaching Antigravity 2.0 agents to an Unreal Engine 5.5 project — across Blueprints and C++ — surfaced a real division of labor between editor work and agent-driven edits. Here are the patterns that actually held up through a live installation.

antigravity429unreal-engine2art-installationagentkit13workflow49

Premium Article

The Blueprint-and-C++ back-and-forth on my Unreal Engine 5.5 installation project got noticeably faster once I started routing it through Antigravity. The piece I'm building is a spatial exhibit whose rendering shifts in real time as visitors move through it, so the code centers on real-time rendering in a game engine and on designing how the scene responds to sensor input. I shape the artistic side by hand, but as an indie developer I've folded Antigravity into the code-level back-and-forth that sits underneath it. I've tuned that division of labor gradually, against the hardware these pieces actually run on at the venue.

Bringing Antigravity 2.0 in as an agent extended what I could reach inside an Unreal project — but game engines come with asset structure, Blueprint binaries, and long compile times that punish a "treat everything like web code" approach. Below are the failures I hit on the way and the patterns that hold up now, covering both prompt design on the agent side and project structure on the engine side.

Map what Antigravity can actually touch in an Unreal project

Antigravity edits text. Unreal projects mix text and binary, and that split decides what you can hand to the agent.

Text-side, fair game: .uproject (JSON), Config/ .ini files, Source/ C++ (.h / .cpp / .Build.cs), Plugins/ metadata, shader code in Shaders/ (USF / HLSL), and project-management files like .gitignore. The agent can read, edit, and commit these directly.

Binary-side, hands off: .uasset and .umap, the binary part of Blueprints, textures, audio, motion capture, and other media. The agent cannot edit these directly. The workable pattern is for the agent to emit a written instruction sheet describing what needs to happen in the editor, which I then apply by hand.

Codifying this in an AGENT_SCOPE.md at the project root, plus an .antigravityignore that locks down binary assets, has saved me from at least two near-incidents where the agent was about to write into .uasset paths.

# .antigravityignore — recommended Unreal layout
*.uasset
*.umap
Content/**
Saved/
Intermediate/
DerivedDataCache/
Binaries/
*.pdb
 
# Re-allow the text-side surfaces the agent should edit
!Source/**
!Config/**
!Shaders/**
!*.uproject
!.gitignore
!AGENT_SCOPE.md

Excluding Content/ wholesale and then re-allowing Source/, Config/, and Shaders/ keeps binary assets safe while leaving code and configuration fully under agent reach.

Tell the agent when to use C++ vs. Blueprints

The conventional Unreal split is: prototype gameplay in Blueprints, push stable core logic to C++. If you don't pin that down for the agent, it will reach for a Blueprint Function Library shortcut whenever it can.

In AGENT_SCOPE.md I spell out the division: new actors and components get their skeleton in C++ with UPROPERTY(EditAnywhere) for anything I'll want to tweak in editor; Blueprints call into those C++ functions; one-off numerical tuning and material parameters stay Blueprint-side; anything multiplayer-synced or saved goes through C++ from day one.

To keep that rule from drifting, I keep a prompt template at _agent_prompts/new_actor.md:

# New actor generation prompt
 
Role: You are the C++ implementation agent for an Unreal Engine 5.5 project.
 
## Required rules
1. Actors are C++ classes under `Source/<ProjectName>/Public/` and `Private/`.
2. Anything tunable from the editor needs `UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Installation")`.
3. Anything called from Blueprints needs `UFUNCTION(BlueprintCallable)`.
4. Prefer forward declarations in headers; include in the `.cpp`.
5. After adding a new `.h` / `.cpp`, verify whether `<ProjectName>.Build.cs` needs a new module dependency.
 
## Output
- Diff of generated files.
- A written checklist of editor-side actions (deriving a Blueprint child class, placing components, etc.).

Routed through that template, the agent reliably stops at the C++ skeleton and emits an editor checklist under _agent_instructions/. Across the twelve new actor types in my current piece, none had to be rebuilt afterward for muddled C++/Blueprint responsibility.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
An honest map of what Antigravity can and cannot reach in an Unreal project
How to tell the agent when to write C++ vs. when to defer to Blueprints
Project conventions that make installation work reproducible on venue hardware
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Antigravity Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

Antigravity2026-06-19
Migrating to Antigravity 2.0 Without Stopping Your Automation: Parallel-Run and Rollback Design
How to move to Antigravity 2.0 without breaking running automation: how to set up a parallel-run window, verify output parity, pin versions, and keep a one-command rollback path, based on migrating four sites one at a time.
Antigravity2026-06-15
Matching Antigravity 2.0's Three Layers to Development Phases: Explore, Iterate, Operate
How I assign Antigravity 2.0's desktop, CLI, and SDK to development phases instead of features, with concrete handoff patterns between layers and the production pitfalls I hit.
Antigravity2026-05-05
Switching from GitHub Copilot to Antigravity: A Practical Migration Guide
A step-by-step guide for GitHub Copilot users migrating to Antigravity. Learn the key differences, how to set up your environment, and how to replace your existing Copilot workflows with Antigravity's more powerful alternatives.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →