unity-run
SolidUse when running Unity from CLI for any purpose — builds, tests, method execution, asset imports. Handles Unity installation detection, batchmode execution, and log monitoring. Other unity-dev skills depend on this for CLI execution.
AI & Automation 6 stars
0 forks Updated 4 days ago MIT
Install
Quality Score: 78/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Run Unity CLI
Execute Unity in batchmode from the command line. This skill handles finding the Unity installation and constructing the CLI command. Calling skills (tests, builds) provide the specific flags.
## Step 1: Find the Unity project
Starting from the current working directory, locate `ProjectSettings/ProjectVersion.txt` by walking up or using Glob. The directory containing `ProjectSettings/` is the project root.
If the user provides a project path explicitly, use that instead.
## Step 2: Detect Unity installation
Use the plugin's detection script:
```bash
UNITY_PATH=$("${CLAUDE_PLUGIN_ROOT}/scripts/find-unity.sh" "<project-root>")
```
The script auto-detects Unity via Hub config, default paths, and Hub CLI fallback. It reads the project's `ProjectVersion.txt` to find the matching editor version.
If detection fails, ask the user to set `UNITY_EDITOR_PATH` environment variable.
## Step 3: Build and run the command
Construct the Unity CLI command with batchmode defaults:
```bash
"$UNITY_PATH" -batchmode -projectPath "<project-root>" <caller-flags> -logFile - -quit
```
**Defaults (always include unless caller overrides):**
- `-batchmode` — no GUI
- `-projectPath` — the detected project root
- `-logFile -` — stream log to stdout (use a file path if caller needs to parse logs separately)
- `-quit` — exit after execution
**Caller provides:** the purpose-specific flags (e.g., `-runTests`, `-buildTarget`, `-executeMethod`).
**Timeout:** Set to 600000ms (10 min...
Details
- Author
- DmitriyYukhanov
- Repository
- DmitriyYukhanov/claude-plugins
- Created
- 6 months ago
- Last Updated
- 4 days ago
- Language
- Shell
- License
- MIT
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
unity-tests-run
Run Unity Test Framework tests via CLI batchmode with auto-detection of Unity installation
6 Updated 4 days ago
DmitriyYukhanov AI & Automation Featured
build-cli
Build the unity-mcp-cli TypeScript CLI tool and link it globally for terminal use.
3,680 Updated today
IvanMurzak AI & Automation Listed
unity-driving
Driving a live Unity Mono development build with the unity MCP tools. Load before first use of any unity tool, when planning multi-step live state edits, or when a unity tool call fails or returns puzzling results.
1 Updated 6 days ago
CitiesSkylinesModding