editor_control
Control Unity Editor windows and UI elements: focus, open, close, lock Inspector, configure Scene view, and more.
Instructions
Controls Unity Editor windows and UI elements. Actions:
focus_window: Focus a specific editor window (Inspector, Hierarchy, Project, Scene, Game, Console, Profiler)
get_windows: List all open editor windows
open_window: Open an editor window
close_window: Close an editor window
inspector_lock: Lock/unlock the Inspector
inspector_mode: Set Inspector to Normal or Debug mode
ping_asset: Ping/highlight an asset in the Project window
frame_selected: Frame selected object in Scene view
set_scene_view: Configure Scene view settings (2D, orthographic, etc.)
get_editor_state: Get current editor state (play mode, paused, compiling, etc.)
refresh: Force refresh of Project window and AssetDatabase
clear_console: Clear the Console window
take_screenshot: Capture editor window screenshot
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Editor control action | |
| locked | No | Lock state for Inspector | |
| assetPath | No | Asset path for ping_asset | |
| debugMode | No | Debug mode for Inspector | |
| windowType | No | Type of editor window | |
| windowIndex | No | Window index when multiple of same type exist | |
| screenshotPath | No | Path to save screenshot | |
| sceneViewSettings | No | Scene view configuration |