# How to Make Games with Claude Code and Unity Engine

Get Claude Code working with Unity in under 2 minutes. Install AI Game Developer, authorize, enable skills, and start creating game objects with AI.

_Last updated: 2026-03-31_

How do you use Claude Code to make a game with full graphics and the full power of a real game engine like Unity? It turns out it is very simple. In this quick tutorial we walk through the entire setup — from installation to creating your first game object — in under two minutes.

[Video: How to Make Games with Claude Code and Unity Engine] (https://www.youtube.com/watch?v=Sknh2p12W8c)

## What Is AI Game Developer?

AI Game Developer is a free, open-source tool that allows you to use the full power of Unity Engine — and in the future Unreal Engine and Godot — with Claude Code or any other AI agent. It is very flexible and gives the AI full access to the engine itself. The AI agent can read scene data, modify objects, create shaders, and do literally anything the engine API supports.

- Works with Claude Code, Cursor, VS Code Copilot, Windsurf, and more
- Full read and write access to Unity Engine
- Open source: github.com/IvanMurzak/Unity-MCP

## Installation

There are two ways to install AI Game Developer. You can use the CLI to install everything automatically — it can even install Unity Editor and create a project for you. Or you can download the installer package manually.

### Option A: CLI (Fully Automated)

The CLI handles everything for you — installing the Unity plugin, setting up the MCP server, and optionally installing Unity Editor itself if you do not have it.

```bash
# Install the plugin into your Unity project
npx unity-mcp-cli install-plugin ./MyUnityProject
```

### Option B: Manual Download

1. Go to ai-game.dev/download and click the Download Installer button
2. Open the downloaded .unitypackage file — Unity will show the import window
3. Click the Import button in the bottom-right corner
4. Wait for Unity to recompile — the AI Game Developer window will appear

## Configuration

After installation, the AI Game Developer window opens. Two quick steps and you are ready to go:

1. Choose your AI agent — in this case Claude Code — and click the Authorize button. This opens a web page where you create an account and authorize the connection. It takes just a few seconds.
2. Enable skills by clicking the checkbox. This registers all available skills so Claude Code can discover and use them.

That is it. The installation and configuration are complete.

## Launching Claude Code

Important: when you launch Claude Code (or any other AI agent), you need to do it in the folder of the Unity project. There is a simple shortcut to open a terminal in the right location from Unity. You do not have to use the terminal specifically — Claude Code works in VS Code, in the desktop app, or anywhere else. It works the same everywhere.

```bash
# Navigate to your Unity project folder and launch Claude Code
cd /path/to/your/unity-project
claude
```

## Your First AI Command

Once Claude Code is running in the project folder, you can start giving commands. For example:

```bash
Create a cube at position 0, 3, 0
```

In a couple of seconds, Claude Code creates the cube directly in the Unity scene. And you can do literally anything — create shaders, build entire scenes, modify materials, set up animations. In the video demo, a configurable glass shader was built entirely with Claude Code.

## What Can You Build?

With AI Game Developer connected, Claude Code has full access to the Unity API. Here are a few examples of what you can do:

- Create and position game objects anywhere in the scene
- Build custom shaders like the configurable glass shader shown in the demo
- Set up materials, textures, and lighting
- Create animations and animator controllers
- Add particle systems and visual effects
- Write and attach C# scripts
- Modify any property on any component

## Get Started

AI Game Developer is completely free and open source. Install the plugin, authorize your AI agent, and start building. Check out the quickstart guide at ai-game.dev/docs/quickstart for detailed setup instructions, or grab the download from ai-game.dev/download.

- AI Game Developer (Unity-MCP): github.com/IvanMurzak/Unity-MCP
- Download: ai-game.dev/download
- Quickstart guide: ai-game.dev/docs/quickstart
- Full game walkthrough: ai-game.dev/blog/build-game-with-ai-claude-code
- Connect Claude Code to Unity: ai-game.dev/blog/claude-code-unity-tutorial
- Generate animations with AI: ai-game.dev/blog/generating-unity-animations-with-ai

---

Source (HTML): https://ai-game.dev/blog/make-games-with-claude-code-unity
