unity-cli

安装量: 2.1K
排名: #6126

安装

npx skills add https://github.com/unity-technologies/skills --skill unity-cli

Unity CLI Drive a running Unity Editor (if one is open) If a Unity Editor is open on this machine, this CLI can control it live — create and modify GameObjects, edit scenes and assets, inspect the hierarchy, and run arbitrary C# — through the project's Pipeline package ( com.unity.pipeline ). When an Editor is available, drive it instead of hand-editing scene or asset files. unity status

confirm a connected Editor (look for state "ready")

unity command

list the commands the Editor exposes

unity command editor_play

run one — e.g. enter Play mode

Run arbitrary C# — e.g. add a GameObject named "Joe" — when the Editor exposes eval:

unity command eval 'new UnityEngine.GameObject("Joe");' Requires the project's com.unity.pipeline package (Unity 6.0+) — add it once with unity pipeline install . Full details — launching a headless Editor to drive, unity list tool discovery, and authoring custom [CliCommand] tools — are in integration-advanced.md . Step 1: Install the CLI (if not already installed) First check if the CLI is available: Show more Installs 865 Repository unity-technolog…s/skills GitHub Stars 180 First Seen Jun 8, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Fail

返回排行榜