editor-application-set-state

Start, stop, or pause Unity Editor playmode via the unity-mcp-cli tool.

Updated May 27, 2026
One-click install
npx skills add https://github.com/AdielMag/ClashUp --skill editor-application-set-state-adielmag
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: editor-application-set-state
Source: https://github.com/AdielMag/ClashUp/tree/main/client/ClashUp.Unity/.claude/skills/editor-application-set-state
Command: npx skills add https://github.com/AdielMag/ClashUp --skill editor-application-set-state-adielmag

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Manually switching the Unity Editor in and out of playmode interrupts automated workflows; this Skill lets you control the Editor application state programmatically from an AI-driven or scripted pipeline. ## Core Features & Use Cases - Playmode Control: Set EditorApplication.isPlaying to start or stop playmode, and EditorApplication.isPaused to pause or resume it. - Compilation Safety Guard: Refuses any state change while script compilation has failed, returning the compilation error details so issues can be fixed first. - State Snapshot Output: Returns an EditorStatsData snapshot after the change, including IsPlaying, IsPaused, IsCompiling, and TimeSinceStartup. - Use Case: While running automated playtests, instruct the AI to enter playmode, run a scenario, then stop playmode and confirm the final editor state without touching the Unity UI. ## Quick Start Ask the AI to start Unity playmode using the editor-application-set-state tool with isPlaying set to true, after checking the current state with editor-application-get-state.

Frequently Asked Questions about editor-application-set-state

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I start Unity playmode from the command line?▼

Run unity-mcp-cli run-tool editor-application-set-state with a JSON input setting isPlaying to true. The tool sets EditorApplication.isPlaying and returns the resulting editor state snapshot.

How do I pause and resume the Unity Editor playmode programmatically?▼

Set the isPaused input to true to pause playmode or false to resume it via the editor-application-set-state tool. This maps directly to EditorApplication.isPaused in the Unity Editor API.

Why does changing Unity playmode state fail with compilation errors?▼

The tool refuses any state change while EditorUtility.scriptCompilationFailed is true and throws with the compilation error details. Fix the script errors first, then retry the state change.

What should I check before entering Unity playmode?▼

Use the editor-application-get-state tool first to inspect the current editor state, including whether the editor is compiling or already in playmode. This avoids redundant or conflicting state changes.

What do I do if unity-mcp-cli is not found?▼

Install it globally with npm install -g unity-mcp-cli, or invoke it through npx unity-mcp-cli. The unity-initial-setup skill provides detailed installation instructions.