来源信息
- 仓库
- Haruma-K/UnityScreenNavigator
- 最近来源活动
- 2026年8月18日 12:58
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 1,123
- 分支
- 107
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- uloop-launch
- description
- Use when Unity Editor is not running or needs a clean restart.
# npx --yes uloop-cli@2.2.0 launch
Launch Unity Editor with the correct version for a project.
`npx --yes uloop-cli@2.2.0 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.
## Usage
```bash
npx --yes uloop-cli@2.2.0 launch [project-path] [options]
```
## Parameters
| Parameter | Type | Description |
|-----------|------|-------------|
| `project-path` | string | Optional. Use only when the target Unity project is not in the current directory. |
| `-r, --restart` | boolean | Kill running Unity and restart |
| `-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) |
| `-a, --add-unity-hub` | boolean | Add to Unity Hub only (does not launch) |
| `-f, --favorite` | boolean | Add to Unity Hub as favorite (does not launch) |
## Examples
```bash
# Search for Unity project in current directory and launch
npx --yes uloop-cli@2.2.0 launch
# Launch specific project
npx --yes uloop-cli@2.2.0 launch /path/to/project
# Restart Unity (kill existing and relaunch)
npx --yes uloop-cli@2.2.0 launch -r
# Launch with build target
npx --yes uloop-cli@2.2.0 launch -p Android
# Add project to Unity Hub without launching
npx --yes uloop-cli@2.2.0 launch -a
```
## Output
- Prints detected Unity version
- Prints project path
- If Unity is already running, focuses the existing window
- If launching, waits until Unity finishes startup and the CLI can connect to the project
在 GitHub 查看