一键导入
uloop-control-play-mode
Control Unity Editor Play Mode. Use to start, stop, or pause Play Mode for runtime behavior checks and frame inspection.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Control Unity Editor Play Mode. Use to start, stop, or pause Play Mode for runtime behavior checks and frame inspection.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Clear Unity Console entries. Use before compile, tests, or debugging when stale logs would hide the current result.
Compile the Unity project and report errors/warnings. Use after C# edits.
Execute C# with Unity APIs when existing uloop tools cannot inspect or edit enough. Use for reachable scene/component state, scene/prefab/menu automation, and PlayMode checks
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.
Get the Unity scene hierarchy as a structured tree. Use for parent-child structure, descendants, roots, or subtrees under objects the user currently selected.
| name | uloop-control-play-mode |
| toolName | control-play-mode |
| description | Control Unity Editor Play Mode. Use to start, stop, or pause Play Mode for runtime behavior checks and frame inspection. |
Control Unity Editor play mode (play/stop/pause).
uloop control-play-mode [options]
| Parameter | Type | Default | Description |
|---|---|---|---|
--action | string | Play | Action to perform: Play, Stop, Pause, Step |
--timeout-seconds | integer | 180 | Maximum seconds to wait for the requested play mode state |
| Option | Description |
|---|---|
--project-path <path> | Optional. Use only when the target Unity project is not the current directory. |
# Start play mode
uloop control-play-mode --action Play
# Start play mode with a longer wait budget
uloop control-play-mode --action Play --timeout-seconds 600
# Stop play mode
uloop control-play-mode --action Stop
# Pause play mode
uloop control-play-mode --action Pause
# Advance exactly one frame while paused (Next Frame button)
uloop control-play-mode --action Step
Returns JSON with the current play mode state:
IsPlaying: Whether Unity is currently in play modeIsPaused: Whether play mode is pausedChanged: Whether the requested action changed the current play mode stateWasAlreadyStopped: Whether Stop was requested while Play Mode was already stoppedMessage: Description of the action performedChanged: false, WasAlreadyStopped: trueTime.timeScale; requires PlayMode to be running--timeout-seconds for projects with slow PlayMode entry.