Skip to main content
command

unity-project-setup — Claude Code command: install & overview

Scaffolds a standardized Unity project with structured Assets directories, URP configs, core C# managers, and Git LFS tracking via Claude Code.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --command game-development/unity-project-setup
Open on GitHub

What unity-project-setup does

This command scaffolds a Unity environment tailored to 2D, 3D, mobile, console, or VR platforms. It builds out the Assets/_Project/ hierarchy for scripts, scenes, audio, and prefabs while adding packages like Universal Render Pipeline (URP), Cinemachine, Addressables, and the Input System.

It generates starter C# components including GameManager.cs, AudioManager.cs, and SaveSystem.cs. Custom editor windows, assembly definitions, and InputActions.inputactions files are created alongside. For source control, it configures a Unity-specific .gitignore file and Git LFS rules for large binary assets.

Execution depends on Read, Write, Edit, and Bash access. The workflow inspects the environment using unity-editor --version and Git status commands before writing files. If the Unity Editor binary is not in your system path, environment detection will skip editor version logging.

What it helps with

  • scaffold an organized Unity folder hierarchy under Assets/_Project/
  • generate boilerplate C# managers for audio, scenes, and save states
  • set up Git LFS and .gitignore rules for game binary assets
  • configure Input System actions and platform-specific quality tiers

Example prompts for the agent

  • Set up a new 3D desktop project with URP using unity-project-setup
  • /unity-project-setup MyMobileGame --mobile
  • Configure a VR project template with Git LFS and input actions

How to install unity-project-setup

1claude-code-templates

npx claude-code-templates@latest --command game-development/unity-project-setup

2Manually: put the files in place

.claude/commands/unity-project-setup.md

Call it with /unity-project-setup. For all projects use ~/.claude/commands/

Questions about unity-project-setup

How to install unity-project-setup in Claude Code?

Run npx claude-code-templates@latest --command game-development/unity-project-setup in your terminal. You can also place the markdown file directly at .claude/commands/unity-project-setup.md.

What does unity-project-setup generate?

It builds an Assets/_Project/ directory structure, generates core C# scripts like GameManager.cs, and configures package manifests for URP and Input System. It also adds .gitignore and Git LFS settings.

Which tool permissions are required?

The command requires Read, Write, Edit, and Bash permissions. Shell access is necessary to check the local Unity Editor version and repository status.

Source text

unity-project-setup.md · MIT
---
allowed-tools: Read, Write, Edit, Bash
argument-hint: "[project-name] | --2d | --3d | --mobile | --vr | --console"
description: Use PROACTIVELY to set up professional Unity game development projects with industry-standard structure, essential packages, and platform-optimized configurations
---

# Unity Project Setup & Development Environment

Initialize professional Unity game development project: $ARGUMENTS

## Current Unity Environment

- Unity version: !`unity-editor --version 2>/dev/null || echo "Unity Editor not found"`
- Current directory: !`pwd`
- Available templates: !`find . -name "*.unitypackage" 2>/dev/null | wc -l` Unity packages
- Git status: !`git status --porcelain 2>/dev/null | wc -l` uncommitted changes
- System info: !`system_profiler SPSoftwareDataType | grep "System Version" 2>/dev/null || uname -a`

## Task

Set up a complete Unity project with professional development environment and platform-specific optimizations.

## What it creates:

### Project Structure
```
Assets/
├── _Project/
│   ├── Scripts/
│   │   ├── Managers/
│   │   ├── Player/
│   │   ├── UI/
│   │   ├── Gameplay/
│   │   └── Utilities/
│   ├── Art/
│   │   ├── Textures/
│   │   ├── Materials/
│   │   ├── Models/
│   │   └── Animations/
│   ├── Audio/
│   │   ├── Music/
│   │   ├── SFX/
│   │   └── Voice/
│   ├── Prefabs/
│   │   ├── Characters/
│   │   ├── Environment/
│   │   ├── UI/
│   │   └── Effects/
│   ├── Scenes/
│   │   ├── Development/
│   │   ├── Production/
│   │   └── Testing/
│   ├── Settings/
│   │   ├── Input/
│   │   ├── Rendering/
│   │   └── Audio/
│   └── Resources/
├── Plugins/
├── StreamingAssets/
└── Editor/
    ├── Scripts/
    └── Resources/
```

### Essential Packages
- Universal Render Pipeline (URP)
- Input System
- Cinemachine
- ProBuilder
- Timeline
- Addressables
- Unity Analytics
- Version Control (if available)

### Project Settings
- Optimized quality settings for target platforms
- Input system configuration
- Physics settings
- Time and rendering configurations
- Build settings for multiple platforms

### Development Tools
- Code formatting rules (.editorconfig)
- Git configuration with Unity-optimized .gitignore
- Assembly definition files for better compilation
- Custom editor scripts for workflow improvement

### Version Control Setup
- Git repository initialization
- Unity-specific .gitignore
- LFS configuration for large assets
- Branching strategy documentation

## Usage:

```bash
npx claude-code-templates@latest --command unity-project-setup
```

## Interactive Options:

1. **Project Type Selection**
   - 2D Game
   - 3D Game
   - Mobile Game
   - VR/AR Game
   - Hybrid (2D/3D)

2. **Target Platforms**
   - PC (Windows/Mac/Linux)
   - Mobile (iOS/Android)
   - Console (PlayStation/Xbox/Nintendo)
   - WebGL
   - VR (Oculus/SteamVR)

3. **Version Control**
   - Git
   - Plastic SCM
   - Perforce
   - None

4. **Additional Packages**
   - TextMeshPro
   - Post Processing
   - Unity Ads
   - Unity Analytics
   - Unity Cloud Build
   - Custom package selection

## Generated Files:

### Core Scripts
- `GameManager.cs` - Main game controller
- `SceneLoader.cs` - Scene management system
- `AudioManager.cs` - Audio system controller
- `InputManager.cs` - Input handling system
- `UIManager.cs` - UI system manager
- `SaveSystem.cs` - Save/load functionality

### Editor Tools
- `ProjectSetupWindow.cs` - Custom editor window
- `SceneQuickStart.cs` - Scene setup automation
- `AssetValidator.cs` - Asset validation tools
- `BuildAutomation.cs` - Build pipeline helpers

### Configuration Files
- `ProjectSettings.asset` - Optimized project settings
- `QualitySettings.asset` - Multi-platform quality tiers
- `InputActions.inputactions` - Input system configuration
- `AssemblyDefinitions` - Modular compilation setup

### Documentation
- `README.md` - Project overview and setup instructions
- `CONTRIBUTING.md` - Development guidelines
- `CHANGELOG.md` - Version history template
- `API_REFERENCE.md` - Code documentation template

## Post-Setup Checklist:

- [ ] Review and adjust quality settings for target platforms
- [ ] Configure input actions for your game controls
- [ ] Set up build configurations for all target platforms
- [ ] Review folder structure and rename as needed
- [ ] Configure version control and make initial commit
- [ ] Set up continuous integration if required
- [ ] Configure analytics and crash reporting
- [ ] Review and customize coding standards

## Platform-Specific Configurations:

### Mobile
- Touch input configuration
- Performance optimization settings
- Battery usage optimization
- App store submission setup

### PC
- Multi-resolution support
- Keyboard/mouse input setup
- Graphics options menu template
- Windows/Mac/Linux build configs

### Console
- Platform-specific input mapping
- Achievement/trophy integration setup
- Online services configuration
- Certification requirement templates

This command creates a production-ready Unity project structure that scales from prototype to shipped game, following industry best practices and Unity's recommended patterns.

© davila7 · MIT · davila7/claude-code-templates

Similar slash commands

Everything for Game dev and 3D: Unity, Unreal, Godot, Blender →

From the same set495

The whole set →
firebase This skill guides Firebase backend work across auth, databases, functions, storage, and hosting. Use it before choosing a data model or access rules. 321installs core-web-vitals This skill examines LCP, INP, and CLS and suggests code changes for loading, responsiveness, and layout stability. Use it when diagnosing weak page metrics. 315installs context-window-management A skill for handling LLM context windows: summarization, trimming, routing and fighting context rot. Useful when a long dialogue runs into the token limit. 309installs documentation-templates This skill provides outlines and templates for READMEs, API references, code comments, and project records. Use it when starting documentation or bringing existing pages into a clearer structure. 305installs agent-memory-mcp This skill runs an MCP server that gives your agent long-term memory: it stores decisions, architecture notes and patterns, then finds them again by search. 300installs setup-visual-testing A slash command that wires up visual regression testing: component and page snapshots, responsive breakpoints, accessibility checks. 300installs web-quality-audit This skill reviews a project for performance, accessibility, SEO, and web best practices. Use it to find issues and get prioritized fixes with code examples. 294installs java-mcp-expert A subagent for building MCP servers in Java with the official SDK, Project Reactor and Spring Boot. Useful when you need tools, resources and prompts wired up. 291installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor