uloop-compile
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseuloop compile
uloop compile
Execute Unity project compilation.
执行Unity项目编译。
Usage
用法
bash
uloop compile [--force-recompile] [--wait-for-domain-reload]bash
uloop compile [--force-recompile] [--wait-for-domain-reload]Parameters
参数
| Parameter | Type | Description |
|---|---|---|
| boolean | Force full recompilation (triggers Domain Reload) |
| boolean | Wait until Domain Reload completes before returning |
| 参数 | 类型 | 描述 |
|---|---|---|
| 布尔值 | 强制完全重新编译(触发Domain Reload) |
| 布尔值 | 等待Domain Reload完成后再返回 |
Global Options
全局选项
| Option | Description |
|---|---|
| Target a specific Unity project (mutually exclusive with |
| Specify Unity TCP port directly (mutually exclusive with |
| 选项 | 描述 |
|---|---|
| 指定目标Unity项目(与 |
| 直接指定Unity TCP端口(与 |
Examples
示例
bash
undefinedbash
undefinedCheck compilation
检查编译情况
uloop compile
uloop compile
Force full recompilation
强制完全重新编译
uloop compile --force-recompile
uloop compile --force-recompile
Force recompilation and wait for Domain Reload completion
强制重新编译并等待Domain Reload完成
uloop compile --force-recompile true --wait-for-domain-reload true
uloop compile --force-recompile true --wait-for-domain-reload true
Wait for Domain Reload completion even without force recompilation
即使不强制重新编译,也等待Domain Reload完成
uloop compile --force-recompile false --wait-for-domain-reload true
undefineduloop compile --force-recompile false --wait-for-domain-reload true
undefinedOutput
输出
Returns JSON:
- : boolean
Success - : number
ErrorCount - : number
WarningCount
返回JSON格式数据:
- : 布尔值
Success - : 数值
ErrorCount - : 数值
WarningCount
Troubleshooting
故障排除
If CLI hangs or shows "Unity is busy" errors after compilation, stale lock files may be preventing connection. Run the following to clean them up:
bash
uloop fixThis removes any leftover lock files (, , ) from the Unity project's Temp directory.
compiling.lockdomainreload.lockserverstarting.lock如果CLI在编译后挂起或显示“Unity正忙”错误,可能是陈旧的锁定文件阻止了连接。运行以下命令清理:
bash
uloop fix此命令会删除Unity项目Temp目录中残留的锁定文件(、、)。
compiling.lockdomainreload.lockserverstarting.lock