Skip to main content

uloop-control-play-mode

Control Unity Editor Play Mode. Use to start, stop, or pause Play Mode for runtime behavior checks and frame inspection.

来源信息

仓库
Haruma-K/UnityScreenNavigator
最近来源活动
2026年8月18日 12:58
检测到的 SKILL.md 语言
英语
星标
1,123
分支
107

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
uloop-control-play-mode
description
Control Unity Editor Play Mode. Use to start, stop, or pause Play Mode for runtime behavior checks and frame inspection.
# npx --yes uloop-cli@2.2.0 control-play-mode Control Unity Editor play mode (play/stop/pause). ## Usage ```bash npx --yes uloop-cli@2.2.0 control-play-mode [options] ``` ## Parameters | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `--action` | string | `Play` | Action to perform: `Play`, `Stop`, `Pause` | ## Global Options | Option | Description | |--------|-------------| | `--project-path <path>` | Optional. Use only when the target Unity project is not the current directory. | ## Examples ```bash # Start play mode npx --yes uloop-cli@2.2.0 control-play-mode --action Play # Stop play mode npx --yes uloop-cli@2.2.0 control-play-mode --action Stop # Pause play mode npx --yes uloop-cli@2.2.0 control-play-mode --action Pause ``` ## Output Returns JSON with the current play mode state: - `IsPlaying`: Whether Unity is currently in play mode - `IsPaused`: Whether play mode is paused - `Message`: Description of the action performed ## Notes - Play action starts the game in the Unity Editor (also resumes from pause) - Stop action exits play mode and returns to edit mode - Pause action pauses the game while remaining in play mode - Useful for automated testing workflows - PlayMode entry may complete on the next editor frame. If a PlayMode-dependent command reports "PlayMode is not active" immediately after `--action Play`, wait briefly and retry.
在 GitHub 查看