editor-application-get-state

Fetch Unity Editor state fields for automation pipelines.

3.8k|349|Updated Apr 2, 2025
One-click install
npx skills add https://github.com/IvanMurzak/Unity-MCP --skill editor-application-get-state-ivanmurzak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: editor-application-get-state
Source: https://github.com/IvanMurzak/Unity-MCP/tree/main/Unity-MCP-Plugin/.claude/skills/editor-application-get-state
Command: npx skills add https://github.com/IvanMurzak/Unity-MCP --skill editor-application-get-state-ivanmurzak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Real-time access to Unity Editor state data enables automated workflows and tooling to react to editor conditions without manual checks.

Core Features & Use Cases

  • Retrieve IsPlaying, IsPaused, IsCompiling, IsPlayingOrWillChangePlaymode, and IsUpdating to drive automation decisions.
  • Expose ApplicationContentsPath, ApplicationPath, and TimeSinceStartup for startup diagnostics and environment awareness.
  • Use in editor scripts and CI pipelines to conditionally run tasks based on current editor state.

Quick Start

Call the tool to fetch the current Unity Editor state and inspect fields such as IsPlaying, IsPaused, and IsCompiling.

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 currently in play mode for automation scripts?

Query the Unity Editor state to retrieve the IsPlaying and IsPaused fields for automation scripts. This provides real-time play mode status, allowing your automation pipelines to conditionally execute tasks based on whether the editor is actively playing.

How can I get Unity compilation status and startup timing during a CI pipeline?

Get Unity compilation status and startup timing during a CI pipeline by fetching the editor state. The structured output provides IsCompiling and TimeSinceStartup fields, enabling CI workflows to wait for compilation to finish and track environment startup diagnostics.

What Unity Editor environment data is available for editor scripting besides play mode?

Besides play mode, Unity Editor environment data available for editor scripting includes IsUpdating, IsPlayingOrWillChangePlaymode, ApplicationContentsPath, and ApplicationPath. These fields expose startup diagnostics and environment awareness for advanced automation logic.

Does this Unity editor state query require any external dependencies or components?

This Unity editor state query does not require any external dependencies or components. It operates directly within the Unity environment to fetch state data, making it immediately accessible for editor scripting and automation pipelines without setup.

Why does my Unity automation script fail when the editor is still compiling?

Your Unity automation script may fail when the editor is still compiling because tasks executed during compilation conflict with editor state changes. Query the IsCompiling field to detect active compilation and conditionally pause your automation pipeline until it finishes.