Skip to content
PWR

AI Unity development

AI Unity development: what works and what is still ahead

Unity projects mix C# with scenes, prefabs and serialized assets. This page explains how autonomous agents can work on a Unity project safely, and exactly which parts PWR supports today.

The two halves of a Unity project

A Unity project has a code half and an editor half. The code half is C# scripts, assembly definitions, packages and tests. It behaves like any software project: text files, diffs and reviews work as expected.

The editor half is scenes, prefabs, ScriptableObjects and project settings. These are serialized files with object references by identifier. They are technically text, but they are not meant to be written by hand. A small mistake produces missing references that only surface when someone opens the scene.

Any approach to AI Unity development has to treat these halves differently. Code can be edited directly and reviewed as a diff. Editor state should be changed through Unity's own serialization and undo APIs, from inside the editor.

How agents can work on Unity code

For C# work an agent needs context and a boundary. Context means knowing the editor version, the render pipeline, the installed packages, the scene list and where tests live. The boundary is a branch, a set of allowed tools and a definition of done.

With those in place, typical tasks are well within reach: implement a gameplay system against stated acceptance criteria, fix a bug with a regression test, refactor a manager class, or add edit-mode tests for logic that does not need a running scene.

The limit is verification. Without a Unity editor on the machine doing the work, the agent cannot compile the project or run the Unity Test Framework. Its output is a reviewed diff that your own CI or a developer still has to build.

Scene and prefab changes need the editor

The safe route for scene work is an editor-side bridge: a small server inside the Unity editor that exposes specific operations such as reading the hierarchy, setting a serialized property, adding a component, instantiating a prefab and saving the scene. Each write goes through the editor's serialization and undo system, and paths are restricted to the project's asset folders.

This also gives a clean permission model. Read operations and write operations are separate tools with declared risk levels, so an administrator can grant inspection without granting modification.

Running this requires an engine worker: a machine with the exact editor version the project declares and a valid license. That is a real cost in setup and start-up time, and it is the reason in-editor automation arrives later than code automation.

Where PWR stands on Unity

PWR discovers Unity projects from their project files. It records the editor version, packages, render pipeline, the build scene list, asset counts and test assemblies, and suggests validation settings. Serialized files are read, never rewritten.

Agents can change C# source through the standard PWR workflow: a task branch, a pull request with evidence, an independent review and a human approval. PWR does not compile or test that code in Unity.

The Unity bridge package and its protocol are written, and the PWR side is tested against a simulated bridge. The package itself has never been compiled in a Unity editor. Scene edits, test runs, player builds and screenshots through Unity are therefore upcoming, not available.

  • Today: discovery, validation profile, C# changes as reviewed pull requests, design review and planning
  • Upcoming: editor bridge, Unity test runs, player builds, in-editor capture

What PWR does here

With the honest state of each capability.

Available
Implemented and covered by automated tests in the current platform build.
Beta
Implemented; verification against the live external service is still pending.
Upcoming
Planned or in progress. Not usable yet.
  • Unity project discovery

    Beta

    Reads editor version, packages, render pipeline, build scenes, asset counts and test assemblies without modifying the project.

    Verified on fixture projects and a simulated GitHub; not yet run on production-scale game repositories.

  • C# changes as reviewed pull requests

    Beta

    The Gameplay Engineer role edits source on a task branch and opens a pull request. The code is not compiled or tested in Unity by PWR.

    Verified end to end against a simulated GitHub; verification against live GitHub is pending.

  • Bridge tools through the gateway

    Beta

    A Unity bridge registers as an integration. Its tools carry declared risk levels and must be approved and granted to an agent.

    Verified against a simulated engine bridge only; this proves the PWR side of the protocol, not the engine side.

  • Unity editor bridge package

    Upcoming

    Scene inspection, serialized property edits with undo, prefab instantiation and scene saves from inside the editor.

    Written but never run inside a real editor; validation on a provisioned engine worker is pending.

  • Unity tests, builds and capture

    Upcoming

    Edit-mode and play-mode test runs, player builds and Game view screenshots on an engine worker.

    Blocked until a licensed Unity engine worker is provisioned and the acceptance checklist has been run on a real project.

Related product pages: Game Development, PWR Engineer, Integrations

Questions

Can PWR open my Unity project and run play-mode tests?

Not yet. That requires a licensed Unity engine worker and the editor bridge, both of which are upcoming. Today PWR works on the source code of a Unity project without running the editor.

Which Unity versions are supported?

None has been validated, so none is listed. Discovery records the exact editor version your project declares so that an engine worker can be matched to it.

Will an agent edit my scene files as text?

That is not the intended path. Scene and prefab changes are designed to go through the editor bridge using Unity's serialization and undo APIs. Until the bridge is validated, keep scene work with your team.

Is C# code from an agent safe to merge?

Treat it like any contributor's pull request. It gets an independent agent review and needs a human approval in PWR, and because PWR does not compile it in Unity, your own build and tests should run before merge.

Put an AI development team on your idea.

Describe what you want to build. PWR plans, builds, tests and reviews it, and you approve each step that matters.