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.