unity-editor

Control Unity Editor play mode, selection, undo/redo, and menu execution.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/lrbjk/FenShen_Remake_V0 --skill unity-editor-lrbjk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-editor
Source: https://github.com/lrbjk/FenShen_Remake_V0/tree/main/.codex/skills/unity-skills/skills/editor
Command: npx skills add https://github.com/lrbjk/FenShen_Remake_V0 --skill unity-editor-lrbjk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides programmatic control over the Unity Editor to eliminate manual repetitive editor tasks, prevent unsafe operations during play mode, and surface editor context for automation and tooling.

Core Features & Use Cases

  • Play/Pause/Stop Control: Enter and exit play mode and toggle pause to automate runtime testing and iteration.
  • Selection & Context Inspection: Query and set selection, retrieve selected game objects and assets, and get full editor context for scripted workflows.
  • Editor Commands & Safety: Execute precise menu commands, manage undo/redo, retrieve tags and layers, and configure pause-on-error with guardrails to avoid silent failures.
  • Use Case: Use in automated test harnesses or development assistants that need to start play mode, locate objects by instanceId, run menu actions like File/Save, and safely revert changes with undo.

Quick Start

Retrieve the current editor state, wait until compilation finishes, then select the Player object and enter play mode.

Frequently Asked Questions about unity-editor

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

FAQPage Schema
How do I automate Unity Editor play mode and selection control in scripts?

Automate Unity Editor operations by programmatically entering play mode, querying selection state, and invoking menu items with deterministic commands and parameter validation guardrails for safe testing.

Can I execute Unity menu commands and manage undo-redo programmatically?

Execute precise Unity menu commands like File/Save and manage undo-redo programmatically to safely revert changes, retrieving tags and layers while configuring pause-on-error to avoid silent failures.

What's the best way to query Unity Editor context and selected game objects?

Query and set selection to retrieve selected game objects and assets, locate objects by instanceId, and get full Unity Editor context for scripted workflows and automated test harnesses.

Does this Unity Editor automation tool provide guardrails for play mode testing?

The Unity Editor automation provides deterministic commands with parameter validation and pause-on-error guardrails to prevent unsafe operations during play mode and avoid silent automation failures.

How to wait for Unity compilation to finish before running editor automation scripts?

Retrieve the current Unity Editor state and wait until compilation finishes before selecting objects and entering play mode, ensuring deterministic execution for development assistants and automated tests.