uloop-launch

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

uloop 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

参数

ParameterTypeDescription
project-path
stringPath to Unity project (optional, searches current directory if omitted)
-r, --restart
booleanKill running Unity and restart
-p, --platform <P>
stringBuild target (e.g., StandaloneOSX, Android, iOS)
--max-depth <N>
numberSearch depth when project-path is omitted (default: 3, -1 for unlimited)
-a, --add-unity-hub
booleanAdd to Unity Hub only (does not launch)
-f, --favorite
booleanAdd to Unity Hub as favorite (does not launch)
ParameterTypeDescription
project-path
stringUnity项目路径(可选,若省略则搜索当前目录)
-r, --restart
boolean关闭运行中的Unity并重启
-p, --platform <P>
string构建目标(例如:StandaloneOSX、Android、iOS)
--max-depth <N>
number省略project-path时的搜索深度(默认值:3,-1表示无限制)
-a, --add-unity-hub
boolean仅添加至Unity Hub(不启动项目)
-f, --favorite
boolean添加至Unity Hub并设为收藏(不启动项目)

Examples

示例

bash
undefined
bash
undefined

Search 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
undefined
uloop launch -a
undefined

Output

输出

  • 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