一键导入
uloop-compile
Compile the Unity project and report errors/warnings. Use after C# edits or when a full Domain Reload compile is needed.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Compile the Unity project and report errors/warnings. Use after C# edits or when a full Domain Reload compile is needed.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | uloop-compile |
| description | Compile the Unity project and report errors/warnings. Use after C# edits or when a full Domain Reload compile is needed. |
Execute Unity project compilation.
npx --yes uloop-cli@2.2.0 compile [--force-recompile] [--wait-for-domain-reload]
| Parameter | Type | Default | Description |
|---|---|---|---|
--force-recompile | boolean | false | Force full recompilation (triggers Domain Reload) |
--wait-for-domain-reload | boolean | false | Wait until Domain Reload completes before returning |
| Option | Description |
|---|---|
--project-path <path> | Optional. Use only when the target Unity project is not the current directory. |
# Check compilation
npx --yes uloop-cli@2.2.0 compile
# Force full recompilation
npx --yes uloop-cli@2.2.0 compile --force-recompile
# Force recompilation and wait for Domain Reload completion
npx --yes uloop-cli@2.2.0 compile --force-recompile true --wait-for-domain-reload true
# Wait for Domain Reload completion even without force recompilation
npx --yes uloop-cli@2.2.0 compile --force-recompile false --wait-for-domain-reload true
Returns JSON:
Success: booleanErrorCount: numberWarningCount: numberDiagnose the failure mode before retrying.
Stale lock files (CLI hangs or shows "Unity is busy" while Unity Editor is running):
npx --yes uloop-cli@2.2.0 fix
This removes any leftover lock files (compiling.lock, domainreload.lock, serverstarting.lock) from the Unity project's Temp directory. Then retry npx --yes uloop-cli@2.2.0 compile.
Unity Editor not running (CLI returns a connection failure and no Unity process is alive):
npx --yes uloop-cli@2.2.0 launch
npx --yes uloop-cli@2.2.0 launch auto-detects the project at the current working directory and opens it in the matching Unity Editor version. After Unity finishes launching, retry npx --yes uloop-cli@2.2.0 compile.
日本語の技術文書・書籍原稿の文章規範。整形(一文一行、引用ブロック、脚注、コラム記法)、段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。
Execute C# with Unity APIs when existing uloop tools cannot inspect or edit enough. Use for scene, prefab, SerializedObject, AssetDatabase refresh/.meta generation, menu, or PlayMode automation.
Clear Unity Console entries. Use before compile, tests, or debugging when stale logs would hide the current result.
Control Unity Editor Play Mode. Use to start, stop, or pause Play Mode for runtime behavior checks and frame inspection.
Find or inspect Unity GameObjects, especially objects the user currently selected in the Hierarchy. Use for details, components, tags, layers, or name/path searches.
Bring the Unity Editor window to front. Use when Unity must be visible for visual checks or user-facing interaction.