一键导入
uloop-launch
Launch or restart Unity Editor. Use when Unity needs to be opened or restarted.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Launch or restart Unity Editor. Use when Unity needs to be opened or restarted.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | uloop-launch |
| description | Launch or restart Unity Editor. Use when Unity needs to be opened or restarted. |
Launch Unity Editor with the correct version for a project.
uloop launch is not fire-and-forget. When Unity needs to start or restart, the command waits
until Unity is actually ready for CLI operations before it exits.
uloop launch [project-path] [options]
| Parameter | Type | Description |
|---|---|---|
project-path | string | Optional. Use only when the target Unity project is not in the current directory. |
-r, --restart | flag | Kill running Unity and restart |
-q, --quit | flag | Kill an existing Unity process for the project without launching |
--editor-version <version> | string | Use this Unity Editor version instead of ProjectVersion.txt |
-p, --platform <P> | string | Build target (e.g., StandaloneOSX, Android, iOS) |
--max-depth <N> | number | Search depth when project-path is omitted (default: 3, -1 for unlimited) |
# Search for Unity project in current directory and launch
uloop launch
# Launch specific project
uloop launch /path/to/project
# Restart Unity (kill existing and relaunch)
uloop launch -r
# Launch with build target
uloop launch -p Android
# Launch with a specific installed Editor version
uloop launch --editor-version 6000.0.0f1
# Quit running Unity without launching
uloop launch --quit
May print status/progress lines before the final JSON payload, such as project path, detected Unity version, or readiness wait messages.
The final JSON payload includes:
Success: whether the command completedReady: whether Unity CLI Loop is ready for commandsServerReady: whether the Unity CLI Loop server accepted requestsProjectIpcReady: whether the project IPC path accepted tool requestsAlreadyRunning: whether an existing Unity process was reusedLaunched: whether this command launched a Unity processRestarted: whether this command stopped an existing process and launched a new oneQuit: whether this command stopped Unity without launching a new processPreviousProcessId: process ID stopped by restart or quit, when availableCurrentProcessId: current Unity process ID, when availableProjectRoot: resolved project rootMessage: readiness summaryps), plain launch falls back to IPC probing; --restart and --quit still fail because they need the process iduloop update first if an older dispatcher is installed--editor-version only affects new Unity processes; use it with --restart to replace an already-running EditorClear Unity Console entries. Use before compile, tests, or debugging when stale logs would hide the current result.
Compile the Unity project and report errors/warnings. Use after C# edits.
Control Unity Editor Play Mode. Use to start, stop, or pause Play Mode for runtime behavior checks and frame inspection.
Execute C# with Unity APIs when existing uloop tools cannot inspect or edit enough. Use for reachable scene/component state, scene/prefab/menu automation, and PlayMode checks
Find or inspect Unity GameObjects, especially objects the user currently selected in the Hierarchy. Use for details, components, tags, layers, or name/path searches.
Bring the Unity Editor window to front. Use when Unity must be visible for visual checks or user-facing interaction.