editor-application-get-state

Returns the current state of UnityEditor.EditorApplication including playmode, pause, and compilation flags.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? When automating or debugging Unity Editor workflows, you often need to know whether the Editor is in Play mode, paused, compiling scripts, or refreshing assets before issuing further commands. This Skill snapshots that state in one call so automated tooling never acts on stale assumptions. ## Core Features & Use Cases - Editor State Snapshot: Reads playmode, paused, compiling, updating, and playmode-transition flags from UnityEditor.EditorApplication on the main thread. - Environment Paths: Returns the Unity Editor application path and contents path plus time since startup. - Use Case: Before triggering a playmode test run via automation, call this tool to confirm the Editor is not compiling or updating, avoiding failed or flaky test executions. ## Quick Start Ask the assistant to run the editor-application-get-state tool through unity-mcp-cli to check whether the Unity Editor is currently playing, paused, or compiling.

Frequently Asked Questions about editor-application-get-state

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

FAQPage Schema
How do I check if the Unity Editor is in Play mode from the command line?▼

Run the editor-application-get-state tool via unity-mcp-cli, which returns an IsPlaying boolean along with other EditorApplication flags. The call executes on the Editor main thread and reflects the live state.

How to detect when Unity Editor is compiling scripts programmatically?▼

Use the IsCompiling field in the returned EditorStatsData, which mirrors EditorApplication.isCompiling. Poll the tool before running tests or builds to avoid acting during a recompile.

What information does the editor state tool return?▼

It returns IsPlaying, IsPaused, IsCompiling, IsPlayingOrWillChangePlaymode, IsUpdating, TimeSinceStartup, plus the Unity Editor application path and contents path as a structured JSON object.

Why does unity-mcp-cli fail with command not found?▼

The CLI is not installed globally. Install it with npm install -g unity-mcp-cli or invoke it through npx unity-mcp-cli, then retry the tool call.

Does this tool require any input parameters?▼

No meaningful input is required; the schema only defines an optional unused string field. You can invoke it with an empty JSON object to receive the full editor state snapshot.