uloop-launch
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseuloop launch
uloop 启动
Launch Unity Editor with the correct version for a project.
为项目启动对应版本的Unity Editor。
Usage
使用方法
bash
uloop launch [project-path] [options]bash
uloop launch [project-path] [options]Parameters
参数
| Parameter | Type | Description |
|---|---|---|
| string | Path to Unity project (optional, searches current directory if omitted) |
| boolean | Kill running Unity and restart |
| string | Build target (e.g., StandaloneOSX, Android, iOS) |
| number | Search depth when project-path is omitted (default: 3, -1 for unlimited) |
| boolean | Add to Unity Hub only (does not launch) |
| boolean | Add to Unity Hub as favorite (does not launch) |
| Parameter | Type | Description |
|---|---|---|
| string | Unity项目路径(可选,若省略则搜索当前目录) |
| boolean | 关闭运行中的Unity并重启 |
| string | 构建目标(例如:StandaloneOSX、Android、iOS) |
| number | 省略project-path时的搜索深度(默认值:3,-1表示无限制) |
| boolean | 仅添加至Unity Hub(不启动项目) |
| boolean | 添加至Unity Hub并设为收藏(不启动项目) |
Examples
示例
bash
undefinedbash
undefinedSearch for Unity project in current directory and launch
在当前目录搜索Unity项目并启动
uloop launch
uloop launch
Launch specific project
启动指定项目
uloop launch /path/to/project
uloop launch /path/to/project
Restart Unity (kill existing and relaunch)
重启Unity(关闭现有进程并重新启动)
uloop launch -r
uloop launch -r
Launch with build target
以指定构建目标启动
uloop launch -p Android
uloop launch -p Android
Add project to Unity Hub without launching
将项目添加至Unity Hub但不启动
uloop launch -a
undefineduloop launch -a
undefinedOutput
输出
- Prints detected Unity version
- Prints project path
- If Unity is already running, focuses the existing window
- If launching, opens Unity in background
- 打印检测到的Unity版本
- 打印项目路径
- 若Unity已在运行,则聚焦现有窗口
- 若启动项目,则在后台打开Unity