CLAUDE LABJP
WWDC — WWDC 2026 confirms Siri runs on Google Gemini; third-party handoff to ChatGPT is dropped, and Siri AI won't ship in the EU under the DMA at iOS 27BILLING — 6 days until the Jun 15 change: Agent SDK, headless Claude Code, GitHub Actions, and third-party agents move to API-rate monthly creditOUTAGE — claude.ai, Claude Code, and Cowork saw an outage (Jun). Scheduled runs are safest when built around fallbackModel and retriesDYNAMIC-WORKFLOWS — Dynamic workflows are on by default on Max/Team and the API, for codebase-wide bug hunts and independent verificationULTRACODE — Claude Code's new ultracode setting sits in the effort menu, fixing effort to xhigh while Claude decides when to run a workflowOPUS4.8 — Claude Opus 4.8 is settled in as the default across major plans, with stronger coding, agentic, and reasoning skillsWWDC — WWDC 2026 confirms Siri runs on Google Gemini; third-party handoff to ChatGPT is dropped, and Siri AI won't ship in the EU under the DMA at iOS 27BILLING — 6 days until the Jun 15 change: Agent SDK, headless Claude Code, GitHub Actions, and third-party agents move to API-rate monthly creditOUTAGE — claude.ai, Claude Code, and Cowork saw an outage (Jun). Scheduled runs are safest when built around fallbackModel and retriesDYNAMIC-WORKFLOWS — Dynamic workflows are on by default on Max/Team and the API, for codebase-wide bug hunts and independent verificationULTRACODE — Claude Code's new ultracode setting sits in the effort menu, fixing effort to xhigh while Claude decides when to run a workflowOPUS4.8 — Claude Opus 4.8 is settled in as the default across major plans, with stronger coding, agentic, and reasoning skills
Articles/Claude Code
Claude Code/2026-04-25Advanced

Claude Code for Unity Game Development: Practical

Hands-on guide to using Claude Code on real Unity projects: writing CLAUDE.md for Unity, the Unity MCP server, scene-aware C# generation, PlayMode tests, and build verification.

Claude Code219Unity6C#2Game Development5MCP57

Premium Article

The longer I work in Unity, the more often I think "this would be faster if I just had Claude Code do it." But Unity isn't like web development. Scenes carry state. Asset import settings live outside source files. Build configuration is in .meta files no one wants to read. Claude Code alone hits a wall fast.

This guide collects the techniques I've actually shipped with — and the patterns I've seen burn through credits without producing working code — across several Unity 6 projects with Claude Code v2.

Why Claude Code lands well in Unity, when set up right

Unity development time breaks roughly into four buckets: scene composition, asset tuning, C# implementation, and build verification. C# implementation is the part that maps cleanly to AI-generated code. The same skill set that writes good TypeScript writes good Unity C#.

What makes Unity hard is that writing the script isn't enough. You still need the right GameObject hierarchy, the right SerializeField references wired up, the right Layer and Tag assignments. Code that compiles but isn't wired into the scene does nothing.

Claude Code only really pulls its weight in Unity once you bridge it to the editor itself with the Unity MCP server, which I'll cover below. Before that bridge exists, Unity work with Claude is half automated at best.

Writing CLAUDE.md for a Unity project

The first thing Claude Code reads on startup is CLAUDE.md. Here's an excerpt from the template I'm currently using:

# Project
 
Vertical-scroll action game on Unity 6.0.x.
Targets: iOS / Android (IL2CPP, ARM64).
Render pipeline: URP 17.x.
Input: Input System Package — do NOT use legacy Input Manager.
 
# Directory layout
 
- Assets/Scripts/Gameplay/ — gameplay logic, MonoBehaviours
- Assets/Scripts/Systems/ — persistence, save/load, audio
- Assets/Scripts/UI/ — UI Toolkit screens
- Assets/_Project/Prefabs/ — player, enemies, items
 
# Coding conventions
 
- using statements: alphabetical
- Private fields: _camelCase. Public: PascalCase
- async/await: UniTask (Cysharp). Bare Task is forbidden
- DOTween: always use SetLink for lifetime safety
- Prefer ScriptableObject for tunable values
 
# Tests
 
- PlayMode tests live in Tests/PlayMode/
- EditMode tests live in Tests/EditMode/
- NUnit + UnityEngine.TestTools assertions

The point is to block web-development assumptions from leaking in. Without "bare Task is forbidden," Claude will happily use await Task.Delay() — which, in Unity, doesn't track the MonoBehaviour lifecycle and keeps running after scene unload. That's a future bug factory.

Calling out URP and the Input System matters too. Skip them and you'll get URP-incompatible shaders and Input.GetKeyDown calls from the legacy input system.

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
How to write a CLAUDE.md tailored to a Unity project's structure and conventions
Automating scene operations with the Unity MCP server
An end-to-end loop: Claude generates code, runs PlayMode tests, and verifies builds
Secure payment via Stripe · Cancel anytime
Share

Thank You for Reading

Claude 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

Claude Code2026-03-19
Unity × Claude Code — Accelerating Game Development with AI Pair Programming
How to adopt Claude Code in Unity game development and dramatically increase development velocity. Practical workflows covering C# script generation, shader creation, debugging support, and architecture design.
Claude Code2026-03-10
Unity × Claude Code Game Dev Guide — Building AI-Driven Workflows with MCP
Learn to accelerate game development with Unity MCP and Claude Code. Covers scene building, asset management, script generation, and debugging with AI-driven workflows.
Claude Code2026-03-17
Unity Shader Graph × Claude Code — AI-Powered Shader Development
Learn how to auto-generate Unity Shader Graph and HLSL shaders with Claude Code. Includes practical samples for toon shading, water surfaces, dissolve effects, and more.
📚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 →