uloop-compile
通过uloop CLI编译Unity项目。当您需要:(1)验证在编辑脚本后C#代码编译成功,(2)检查编译错误或警告,(3)在运行测试前验证脚本更改时使用。
📖 中文导读:通过uloop CLI编译Unity项目。当您需要:(1)验证在编辑脚本后C#代码编译成功,(2)检查编译错误或警告,(3)在运行测试前验证脚本更改时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: uloop-compile description: "Compile Unity project. Use when: verifying code compiles after edits, checking for compile errors, or when user asks to compile. Returns error/warning counts."
uloop compile
Execute Unity project compilation.
Usage
uloop compile [--force-recompile]
Parameters
| Parameter | Type | Description |
|---|---|---|
--force-recompile |
boolean | Force full recompilation (triggers Domain Reload) |
Examples
# Check compilation
uloop compile
# Force full recompilation
uloop compile --force-recompile
Output
Returns JSON:
Success: booleanErrorCount: numberWarningCount: number
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:
uloop fix
This removes any leftover lock files (compiling.lock, domainreload.lock, serverstarting.lock) from the Unity project's Temp directory.