◉CLAUDE LABJP
●CC 2.1.330 — Claude Code 2.1.330 fixes the multi-minute freeze right after compacting a long conversation●SONNET 4.5 — Sonnet 4.5 retires from the Claude API on 11/30, 8 days left. The suggested replacement is claude-sonnet-5-5●MCP 401 — Users report MCP servers that return 401 time out silently instead of showing an error●NEW — New: Desktop creates a worktree for every session? Three places to check●OPUS 4.5 — The 11/24 date for Opus 4.5 is a not-sooner-than floor, not a retirement notice●SCHEMA — Same schema, different shape: compare structured output from the Agent SDK and the Messages API●CC 2.1.330 — Claude Code 2.1.330 fixes the multi-minute freeze right after compacting a long conversation●SONNET 4.5 — Sonnet 4.5 retires from the Claude API on 11/30, 8 days left. The suggested replacement is claude-sonnet-5-5●MCP 401 — Users report MCP servers that return 401 time out silently instead of showing an error●NEW — New: Desktop creates a worktree for every session? Three places to check●OPUS 4.5 — The 11/24 date for Opus 4.5 is a not-sooner-than floor, not a retirement notice●SCHEMA — Same schema, different shape: compare structured output from the Agent SDK and the Messages API
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 Code291Unity3C#Game DevelopmentMCP63

✦ 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
✦

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

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-11-22
When a Remote MCP Server Goes Silent After Its Token Expires, Check for mcp-remote First
A remote MCP tool call hangs with no error. How to tell an expired token from a slow tool, a script that finds servers bridged through mcp-remote, and how to switch to the native HTTP transport or cap the wait.
⟐ Claude Code2026-11-19
Using One MCP Server from Both Claude Code and Gemini CLI? Generate Both Configs from a Single Source
Paste a Claude Code .mcp.json entry into Gemini CLI and the HTTP server may refuse to connect. A side-by-side table of the differences (url vs httpUrl, variable expansion, server names) plus a Python script that writes both configs from one source file.
⟐ Claude Code2026-10-23
When a Nightly claude -p Said MCP Needed Authentication, I Added a Preflight That Splits Sleep From Keychain
Claude Code 2.1.307 fixed MCP failures caused by macOS sleep and a locked login keychain. Here is a preflight script that helps with or without the fix, and a way to match failures against sleep history.