unity-editor

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

1|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/muddyrain/valley-mas --skill unity-editor-muddyrain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-editor
Source: https://github.com/muddyrain/valley-mas/tree/main/.codex/skills/unity-skills/skills/editor
Command: npx skills add https://github.com/muddyrain/valley-mas --skill unity-editor-muddyrain

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity automation for the Unity Editor that lets you programmatically control play mode, object selection, undo/redo, and menu execution, accelerating development and testing workflows.

Core Features & Use Cases

  • Enter play mode with editor_play
  • Select objects with editor_select
  • Undo/Redo with editor_undo/editor_redo
  • Execute menu commands via editor_execute_menu
  • Use editor_get_selection to read current selection and prepare batch operations

Quick Start

Move quickly by calling editor_play to start the scene, then use editor_select to pick a GameObject by name.

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 actions like play mode and object selection?

Automate Unity Editor actions by programmatically triggering play mode, selecting GameObjects by name, and executing menu commands to accelerate testing and scene setup workflows.

Can I trigger Unity undo and redo operations programmatically for batch editor tasks?

Yes, you can trigger Unity undo and redo operations programmatically using dedicated editor commands, allowing you to safely automate batch editor tasks and reversible scene modifications.

What is the best way to execute Unity menu commands during an automated testing workflow?

Executing Unity menu commands during automated testing is handled by a dedicated editor execution function, enabling you to trigger native editor features and batch tasks within your workflow.

How do I read the current Unity object selection to prepare batch operations?

Read the current Unity object selection by retrieving the active editor selection state, allowing you to inspect targeted GameObjects and prepare subsequent batch operations or scene setups.

Does this Unity automation approach work without external dependencies?

Yes, this Unity automation approach operates without external dependencies, using internal editor commands to control play mode, selection, undo-redo, and menu execution directly within your development environment.

When do I need to automate Unity play mode control in my development workflow?

Automate Unity play mode control when you need to programmatically enter, pause, or stop scenes to streamline automated testing, scene validation, and continuous integration workflows.