AgentSkillsCN

uloop-compile

编译Unity项目。适用于在修改后验证代码能否成功编译、检查编译错误,或当用户要求编译时使用。返回错误/警告计数。

SKILL.md
--- frontmatter
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

bash
uloop compile [--force-recompile]

Parameters

ParameterTypeDescription
--force-recompilebooleanForce full recompilation (triggers Domain Reload)

Examples

bash
# Check compilation
uloop compile

# Force full recompilation
uloop compile --force-recompile

Output

Returns JSON:

  • Success: boolean
  • ErrorCount: number
  • WarningCount: 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:

bash
uloop fix

This removes any leftover lock files (compiling.lock, domainreload.lock, serverstarting.lock) from the Unity project's Temp directory.