editor-selection-get

Retrieve current Unity Editor selection details including GameObjects, Transforms, and assets.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/lightvu25/Echoes --skill editor-selection-get-lightvu25
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: editor-selection-get
Source: https://github.com/lightvu25/Echoes/tree/main/SKILLS/editor-selection-get
Command: npx skills add https://github.com/lightvu25/Echoes --skill editor-selection-get-lightvu25

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Retrieve information about the current Selection in the Unity Editor, enabling you to understand what objects are active in the scene and in the inspector for debugging, scripting, and tooling workflows.

Core Features & Use Cases

  • Retrieves details about the selected GameObjects, their transforms, and related assets.
  • Exposes active object and its instance IDs to simplify editor automation and tooling integration.
  • Use case: when debugging a scene, query the selection to programmatically adjust workflows or log selection state for reproducibility.

Quick Start

Query the Unity Editor to return the current selection details.

Frequently Asked Questions about editor-selection-get

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

FAQPage Schema
How do I get selected GameObjects and Transforms in the Unity Editor?

You retrieve Unity Editor selection details by querying the current active objects, returning GameObjects, Transforms, InstanceIDs, and AssetGUIDs in a single API call. This simplifies scene debugging and editor automation workflows by exposing the exact inspector state.

What is the best way to inspect Unity Editor selection state for debugging?

Querying the Unity Editor selection programmatically returns active GameObjects and asset details, enabling you to log selection state for reproducibility. This approach simplifies scene debugging and editor tooling integration by exposing exact active object states.

Can I retrieve InstanceIDs and AssetGUIDs for selected Unity assets simultaneously?

Yes, you can retrieve InstanceIDs and AssetGUIDs for selected Unity assets simultaneously. Querying the editor selection supports optional depth, returning GameObjects, Transforms, InstanceIDs, AssetGUIDs, and the ActiveObject in a single API call for tooling integration.

Does Unity editor selection retrieval work for editor scripting and automation workflows?

Yes, Unity editor selection retrieval works for editor scripting and automation. It exposes active objects and their instance IDs, allowing you to programmatically adjust workflows and integrate custom tooling within the Unity Editor environment.

Why do I need to query active objects when scripting Unity Editor tools?

Querying active objects when scripting Unity Editor tools exposes current GameObjects and instance IDs active in the scene and inspector. This ensures your tooling reacts to the correct selection, simplifying editor automation and debugging workflows.