editor-application-set-state

Set Unity Editor play state via isPlaying and isPaused JSON input.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

## What problem does it solve? Automates controlling the Unity Editor's play state by starting, stopping, or pausing play mode, enabling reproducible editor workflows.

## Core Features & Use Cases

  • Set isPlaying and isPaused to control play state.
  • Query current editor state via editor-application-get-state to validate state transitions.
  • Useful in automated testing, builds, and debugging pipelines.

### Quick Start Call the editor-application-set-state tool with a JSON payload to start, stop, or pause the Unity Editor play mode.

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 automate Unity Editor play mode state transitions?

Control Unity Editor play mode by sending a JSON payload with boolean isPlaying and isPaused values to programmatically start, stop, or pause play mode during automated builds and testing workflows.

Can I start and stop Unity play mode from a CLI automation script?

Yes, CLI automation scripts can control Unity play mode by passing a JSON input with boolean isPlaying and isPaused flags to programmatically start, stop, or pause the editor during build workflows.

What is the best way to programmatically pause Unity Editor during debugging?

Programmatically pause Unity Editor during debugging by setting the isPaused boolean to true in the input JSON. This pauses play mode execution, allowing inspection of game state for reproducible debugging workflows.

How do I validate Unity Editor state transitions during automated testing?

Validate Unity Editor state transitions by querying the current editor state to confirm isPlaying and isPaused values. This ensures play mode changes applied correctly before proceeding with automated testing pipelines.

Does the Unity play state controller require any specific dependencies or components?

The Unity play state controller operates with no dependencies or components, requiring only a JSON input with boolean isPlaying and isPaused values to manage editor play mode transitions during automation workflows.