unity-editor

Control and observe Unity Editor state, play mode, selection, and menu commands.

Updated Aug 31, 2026
One-click install
npx skills add https://github.com/pikachu0310/codex-agent-ops-public --skill unity-editor-pikachu0310
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-editor
Source: https://github.com/pikachu0310/codex-agent-ops-public/tree/main/.agents/skills/unity-skills/skills/editor
Command: npx skills add https://github.com/pikachu0310/codex-agent-ops-public --skill unity-editor-pikachu0310

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Automating Unity Editor workflows requires reading scene changes, driving play mode, and executing menu commands without manually parsing scene YAML files or clicking through the editor UI. ## Core Features & Use Cases - Editor State Observation: Read editor state, selection, full context, and a persistent change journal via editor_get_state, editor_get_context, and editor_get_changes. - Play Mode Control: Enter, pause, step frame-by-frame, and exit play mode, plus capture runtime errors and screenshots with editor_play_capture. - Runtime Inspection: Inspect live GameObject transforms and component fields during play mode with editor_playmode_inspect. - Use Case: After resuming a session where the user edited Unity manually, call editor_get_changes with the saved cursor to see exactly what changed, then enter play mode and step frames to verify behavior. ## Quick Start Ask the AI to check the current Unity Editor state and list any scene changes since the last session.

Frequently Asked Questions about unity-editor

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

FAQPage Schema
How do I control Unity Editor play mode programmatically?

Use editor_play to enter play mode, editor_pause to toggle pause, editor_playmode_step to advance specific frames, and editor_stop to exit. These are high-risk skills that require Bypass mode or an allowlist grant in Approval and Auto modes.

How to track Unity scene changes without parsing YAML files?

Call editor_get_changes with a cursor to read the persistent change journal at Library/UnitySkills/editor_changes.jsonl. It captures scene object, component, and asset changes across domain reloads without ever parsing raw .unity YAML.

Can I inspect GameObject state during Unity play mode?

Yes, editor_playmode_inspect returns a GameObject's transform, active state, and component fields during play mode, including while paused. It also works in Edit Mode, with isPlaying and isPaused flags indicating which state the values reflect.

Why does editor_playmode_step fail or time out?

Stepping requires play mode to already be active and only one step job can run at a time. Poll job_status instead of job_wait, since job_wait blocks the main thread that produces the editor ticks the job depends on.

What menu commands can Unity Editor automation execute?

editor_execute_menu runs any menu item by exact path, such as File/Save, Edit/Play, or Assets/Refresh. Paths must match exactly since typos cause silent failure, and reload-triggering items like Assets/Refresh are restricted in Approval and Auto modes.