unity-run
Installation
SKILL.md
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:
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.