unity-editor

Automate Unity Editor play mode, selection, and menu commands.

1|Updated May 21, 2026
One-click install
npx skills add https://github.com/YiDuandtdt/Bone-Throne --skill unity-editor-yiduandtdt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-editor
Source: https://github.com/YiDuandtdt/Bone-Throne/tree/main/.agents/skills/unity-skills/skills/editor
Command: npx skills add https://github.com/YiDuandtdt/Bone-Throne --skill unity-editor-yiduandtdt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Control and automate Unity Editor operations programmatically, enabling quick entry/exit of play mode, object selection, undo/redo, and execution of common menu commands from external tools or scripts.

Core Features & Use Cases

  • Play mode control: enter and exit play mode; pause, resume, stop.
  • Selection & context: query and manipulate current selection, editor context, and state (isCompiling, isPlaying).
  • Menu automation & state inquiry: execute menu items and retrieve editor state, tags, layers.

Quick Start

Toggle play mode in the Unity Editor and verify the resulting state.

Frequently Asked Questions about unity-editor

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

FAQPage Schema
How do I automate entering and exiting Unity play mode from external scripts?

You can automate Unity play mode by calling editor_play, stop, and pause functions. This returns structured results and mode indicators, allowing external scripts to programmatically toggle the editor state.

Can I execute Unity menu commands programmatically without manual clicks?

Yes, you can execute Unity menu commands programmatically by invoking editor_execute_menu with precise menu paths. This automates common editor actions and returns structured results confirming the execution status.

How do I query the current selection and editor context in Unity for batch scene edits?

Query the current selection and editor context using editor_select and get_selection functions. These retrieve current objects and state information like isCompiling or isPlaying for batch scene edits.

What's the best way to trigger undo and redo operations in the Unity Editor automatically?

Trigger undo and redo operations automatically by invoking the editor_undo and editor_redo functions. This programmatically reverses or reapplies actions within the Unity Editor, returning status indicators for verification.

Does this Unity Editor automation approach require any specific dependencies?

No specific dependencies are required to automate Unity Editor control. It directly handles play mode transitions, selection manipulation, and menu execution, returning structured results and mode indicators.

When do I need to retrieve Unity Editor state like tags and layers?

Retrieve Unity Editor state, tags, and layers when performing automated testing or batch scene edits. Querying this context ensures scripts interact correctly with the current editor environment and configuration.