The Unity plugin for Codex is a set of 31 instruction files (skills) written by Unity. OpenAI's Codex loads them for Unity 6+ projects, and they cover UI, 2D and tilemaps, URP, audio, monetization, multiplayer and web builds. It installs with two commands, 'codex plugin marketplace add Unity-Technologies/unity-agent-plugin' and 'codex plugin add unity@unity-agent-plugin', and adds no engine features. Unity claims better output and fewer errors but has published no benchmarks.
The Unity plugin for Codex is a set of 31 instruction files, called skills, that Unity wrote for OpenAI's Codex. Codex loads them when it works on Unity 6 or newer projects. The plugin installs with two terminal commands and adds no new engine features. Unity says it gives better output and fewer coding errors, but its launch post publishes no numbers to back that up.
What did Unity ship, and when?
Unity announced the plugin on September 16, 2026, in a blog post by Rachel Zhao, Director of AI Products. Unity timed it to OpenAI's GPT-6 Astra release.
According to that post, the plugin includes:
- 31 skills written by the Unity teams that own each feature. They cover UI, 2D and tilemaps, URP and Shader Graph, audio, navigation and physics, IAP and LevelPlay, multiplayer, web and localization.
- Support for Unity 6 and newer only.
- Publication by Unity Technologies under the Unity Companion License. Unity says the skills go through its security review.
The Unity documentation gives the setup as two commands:
codex plugin marketplace add Unity-Technologies/unity-agent-plugin
codex plugin add unity@unity-agent-plugin
To check that it loaded, the docs say to type /unity: in a new Codex session and look for the skills in the slash menu, or to run codex plugin list. Unity's blog adds that there is no per-project configuration. The plugin is also a one-click install from OpenAI's plugin directory.
Codex is not the first agent to get the plugin. A week earlier, Unity's Claude Code plugin post said Claude Code was first, with other agents coming later in the year. Our note on the Claude Code version covers that launch. The Unity docs sidebar now lists Claude Code, Codex and Grok pages, all linked to the same unity-agent-plugin repository. Related coverage is under coding agents and Unity.
What is a "skill", and why does Unity think Codex needs one?
A skill is written guidance the agent loads when a task matches it. It does not run inside Unity, and it does not change what the engine can do. Unity says that with the skills loaded, the agent "checks your project first, uses the current API, and verifies the result." That describes how Unity intends the agent to behave. None of the sources includes an independent measurement of it.
Unity's argument is that a general coding agent answers from the average of years of forum posts and tutorials, many written for engine versions that no longer ship. The Codex post names three specific failures:
- A sprite atlas built by hand, asset by asset, instead of packed by a prebuild pipeline.
- Menu buttons that animate in but snap back on exit, because the transition sat on the hover state instead of the base class.
- A URP renderer feature that looks correct but never runs.
To show the problem is common, Unity cites the Stack Overflow 2025 Developer Survey. In it, 66% of respondents named AI answers that are "almost right, but not quite" as their top frustration. 45.2% said debugging AI-generated code takes more time. 46% distrust AI accuracy, compared with 33% who trust it. These figures cover AI coding tools in general. They say nothing about Unity, Codex or this plugin.
That leaves a gap. The Codex post promises "better output and fewer coding errors." The Claude Code post claims fewer errors, better token efficiency and fewer turns. Neither post publishes a benchmark, a task set or a single number. Until someone does, these remain vendor claims.
Unity links to OpenAI's Astra game-building guide, which shows why engine-specific guidance matters. Its example game, Void Explorer, was built in Codex with TypeScript, Vite and Three.js, not Unity. Without guidance, Codex picks its own stack.
Which of the 31 skills will you actually use?
Unity's post has the full table. Grouped by type of developer, using Unity's own descriptions, it breaks down as follows.
2D and pixel-art developers
This is the largest group, and it matters most for sprite and tileset work:
/2d-pixel-perfectsets up, diagnoses and fixes pixel-perfect rendering./sprite-editoredits sprite rects, borders and pivots, and slices sheets through generatedISpriteEditorDataProvidereditor scripts./manage-sprite-atlashandles atlases through a prebuild pipeline (IPreprocessBuildWithReport). This is Unity's direct answer to its first named failure./tilemap-palette-createbuilds Tile Palettes in rectangular, hexagonal or isometric layouts./sprite-segment-3x3gridsplits a sprite into a 3×3 grid by color match. Its output feeds/tilemap-ruletile-createfromsegment, which builds auto-tiling RuleTiles.
UI developers
The /ui skill is a router. Unity says it checks whether a project uses UI Toolkit, uGUI or IMGUI before writing any code, then hands off to a specialist skill. Unity marks the IMGUI skill as maintenance-only and says new editor UI defaults to UI Toolkit. A separate TextMeshPro skill covers font stacks, fallback atlases and CJK fonts.
Rendering
/urp-postprocessingsets up and debugs post-processing through the Volume framework./shader-graph-create-custom-nodegenerates custom Shader Graph nodes from HLSL./validate-urp-render-graph-renderer-featurereviews Unity 6+ renderer features built on Render Graph. This targets Unity's third named failure./migrate-birp-to-urpcovers pink materials, baked lightmaps and post-migration bugs.
Audio and web builds
For voice and audio, /audio-setup-mixers routes each Audio Source to a mixer group. Unity says it asks you to add missing groups rather than silently skipping them. /optimize-audio handles import settings, and /setup-vivox-voice-chat sets up Vivox voice chat. For browser games, /optimize-web covers compression, stripping, shader variant reduction and KTX textures for WebGL and WebGPU.
What the skills don't cover
Unity's post says /new-unity-project "does not scaffold gameplay code." Most of the skills cover setup, configuration, pipelines and diagnosis. For gameplay logic, Codex still relies on its general knowledge.
Skills that lead into Unity's own services
Several skills route directly into Unity's own services: Vivox, the LevelPlay mediation SDK, Unity IAP (including migration off RevenueCat or Adapty), /build-live-game on Unity Services, and /setup-multiplayer-services. That is normal for a vendor's plugin, but teams on other backends get less from these skills.
How does the Codex version differ from the Claude Code version?
Skill count. The Codex post lists 31 skills, and the Claude Code post from September 9 listed 29. Comparing the two lists, the Codex post adds /generate-editor-search-query (read-only Unity Search lookups) and /migrate-birp-to-urp. Both versions come from the same repository, so the Claude Code version may have these skills by now. This comparison covers only what each launch post listed.
Editor control is unclear. The Claude Code post says its unity-cli skill drives a live Editor: it creates and modifies GameObjects, edits scenes, inspects the hierarchy and runs C#. The Codex post describes the same skill differently. It installs Editors, creates and opens projects, manages packages, licenses and modules, and handles build, test and logs. The Codex page's title metadata mentions "Editor Control," but neither the post body nor the Codex docs page explains it.
Unity's CLI announcement from July 20, 2026 gives the background:
- Live Editor control comes from a separate package,
com.unity.pipeline. Unity labels it experimental. It supports Unity 6.0 LTS and newer and installs withunity pipeline install. unity command evalruns C# inside a running Editor and requires a security token.- The Player runtime API is localhost-only and off by default.
- The install script in that post still uses a beta channel.
The Codex docs page does not mention com.unity.pipeline. It is an open question whether Codex users get live Editor control the same way. The sources neither confirm nor rule it out.
How can you compare Codex with and without the plugin?
None of the sources includes a public with-and-without comparison. The steps below use the three failures Unity itself names, so anyone can check Unity's claim.
- Use one Unity 6 project under version control, so you can reset it between runs.
- Keep the Codex model and settings the same for every run.
- Run each prompt in a fresh session without the plugin. Then reset the project, install the plugin, and run the same prompt in a new session.
The three prompts:
Set up sprite atlases for my UI sprites.
Check whether the result uses a prebuild pipeline or assigns assets by hand.
Add a main menu with animated button transitions.
Check whether it uses the project's existing UI framework, and whether exit transitions play or snap back.
Write a URP renderer feature that adds an outline pass.
Check whether the feature actually runs under Render Graph in Unity 6.
For each run, record:
- Whether it compiles
- Whether it works in Play mode
- How many follow-up prompts it needed
- Any deprecated or pre-Unity 6 APIs it used
Three tasks won't settle the question. They do test the exact cases Unity uses to sell the plugin.
Verdict: who should install it?
Worth installing now: Unity 6+ developers already on Codex who work on 2D and tilemaps, BiRP-to-URP migrations, web builds, localization, or mobile monetization through Unity IAP and LevelPlay. Going by Unity's skill list, these are the jobs the skills target most directly.
Less useful: projects on Unity 2022 LTS or older (the plugin requires Unity 6+), teams that use non-Unity backends for purchases, ads or multiplayer, and anyone who mainly wants help with gameplay code.
Cost and limits: none of the sources gives a price for the plugin itself, and they don't cover Codex's own access terms. Unity's docs page carries a third-party disclaimer about Codex.
Bottom line: the plugin costs little to try and takes one command to remove:
codex plugin remove unity@unity-agent-plugin
To update it, the docs give codex plugin marketplace upgrade unity-agent-plugin. The skill list is specific, and it targets setup and pipeline jobs where version-specific guidance should help. Unity's quality claims stay unproven until someone publishes a comparison. More tool coverage is in Lab Notes, and step-by-step guides are in Experiments.
FAQ
How do I install the Unity plugin for Codex?
Unity's documentation says to run 'codex plugin marketplace add Unity-Technologies/unity-agent-plugin' and then 'codex plugin add unity@unity-agent-plugin'. To check that it loaded, type '/unity:' in a new Codex session or run 'codex plugin list'. Unity's blog says it is also a one-click install from OpenAI's plugin directory.
Does the Unity Codex plugin work with Unity 2022 LTS or older versions?
No. Unity's launch post says the plugin works with Unity 6 and newer only. Several skills also target Unity 6 APIs, such as URP renderer features built on Render Graph.
Can Codex control the Unity Editor directly with the plugin?
The sources don't make this clear. The Codex post says the unity-cli skill handles Editor installs, projects, packages, builds, tests and logs. According to Unity's CLI post, live Editor control comes from the separate, experimental com.unity.pipeline package. The Codex docs page does not mention that package.
What is the difference between Unity's plugin for Codex and its plugin for Claude Code?
Both come from the same unity-agent-plugin repository. The Codex launch post lists 31 skills and the Claude Code post lists 29; the two extra are /generate-editor-search-query and /migrate-birp-to-urp. The Claude Code post also describes live Editor control, which the Codex post does not.
Does the plugin write gameplay code for me?
Not specifically. Unity's post says /new-unity-project does not scaffold gameplay code, and most skills cover setup, configuration, pipelines and diagnosis. For gameplay logic, Codex still relies on its general knowledge.