Unity CLI + Claude: Building a 2D Procedural Dungeon (FREE project) @SunnyValleyStudio
Unity CLI + Claude: Building a 2D Procedural Dungeon (FREE project)  @SunnyValleyStudio
Uploaded August 2026 | Updated September 2026, 2 weeks ago
In this tutorial you will learn how to install Unity CLI and how to use it to build a complete 2D Procedural Dungeon generator using a FREE Unity 6 starter project.

๐Ÿ“ฆ FREE starter project:
patreon.com/sunnyvalleystudio/posts/free-project-2d-166653562

Learn more from my courses:
courses.sunnyvalleystudio.com

Unity CLI documentation:
docs.unity.com/en-us/unity-cli/use-unity-cli

Prompts:
drive.google.com/file/d/12UCZqRLfu9x50AXx6fgK3npSEooDf3Xj/view?usp=drive_link

Assets used:
o-lobster.itch.io/simple-dungeon-crawler-16x16-pixel-pack

---------------------------------------------------
โš™๏ธ WHAT YOU WILL LEARN:
Installing, authenticating and configuring the Unity CLI
- Installing the com.unity.pipeline package so the CLI can drive a running Editor
- Connecting an AI agent (Claude Code, or Codex / ChatGPT) directly to your open project
- How procedural dungeon generation actually works โ€” random placement with rejection, and Prim's algorithm for connecting rooms with corridors
- Deriving walls, colliders and decorations from a single set of floor cells
- Spawning enemies, props and traps without anything overlapping
- Prompting and iteration strategies for AI-assisted Unity work โ€” including catching the things the AI gets wrong

ยทยทยทยทยท Get in touch ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท

๐—›๐—ฎ๐˜ƒ๐—ฒ ๐—ฎ๐—ป๐˜† ๐—พ๐˜‚๐—ฒ๐˜€๐˜๐—ถ๐—ผ๐—ป๐˜€? ๐—๐—ผ๐—ถ๐—ป ๐˜๐—ต๐—ฒ ๐—ฑ๐—ถ๐˜€๐—ฐ๐—ผ๐—ฟ๐—ฑ!
discord.gg/RQEtYHz

๐—ฃ๐—Ÿ๐—˜๐—”๐—ฆ๐—˜ support the channel:
patreon.com/sunnyvalleystudio

---------------------------------------------------

โฑ๏ธ CHAPTERS:
0:00 Why procedural generation is so much work
0:44 Unity CLI vs Unity MCP
1:01 FREE Project
1:47 Installing the Unity CLI
2:19 Connecting the CLI to your project
2:50 Giving your AI agent the CLI
3:37 Saving what it learned & skipping permission prompts
4:16 How the dungeon algorithm works
5:31 The first prompt (plan mode)
7:15 Reviewing the plan
8:17 The rooms are generated
9:06 Too spread out โ€” packing them closer
9:37 Connecting rooms with corridors
10:28 The corridors break the walls
11:08 Wall decorations
11:56 Spawning enemies
12:48 Props & traps
13:34 Final result and where to go next

#unity #unitycli #gamedev #proceduralgeneration
Unity CLI + Claude: Building a 2D Procedural Dungeon (FREE project)Boost Game Performance with Occlusion Culling in Unity 6 | Performance TipCreate Dynamic 2D Puzzles with Composite Operations in Unity 6Make your Unity Game come alive with this Wind Shader ๐ŸŒฑโœจMeasure Execution Time of Your Methods with Profiler in UnityHow to use Claude with Unity UI Toolkit ๐Ÿค–Better Game Sound Effects with Audio Random Container in Unity 2023 #unitytipsUI Toolkit FINALLY supports World Space in Unity 6.2How to make a 3D Platformer with Unity MCP and Claude CodeI let Claude Code prototype a 2D Unity game (Mind-blown)AI broke my gameโ€ฆ 1 click fixed it! ๐Ÿ› ๏ธFix Lighting for Procedural Terrain Generated in Shaders
Sunny Valley Studio |

Unity CLI + Claude: Building a 2D Procedural Dungeon (FREE project)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER