editor-selection-set

Sets the current selection in the Unity Editor to specified objects.

Updated May 28, 2026
One-click install
npx skills add https://github.com/ishaansingh-ai/Mechanical-2D --skill editor-selection-set-ishaansingh-ai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: editor-selection-set
Source: https://github.com/ishaansingh-ai/Mechanical-2D/tree/main/.claude/skills/editor-selection-set
Command: npx skills add https://github.com/ishaansingh-ai/Mechanical-2D --skill editor-selection-set-ishaansingh-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Programmatically controlling which objects are selected in the Unity Editor is tedious when automating editor workflows. This Skill sets the Unity Editor selection to provided GameObjects, Components, or assets via the unity-mcp-cli tool. ## Core Features & Use Cases - Set Editor Selection: Pass an array of ObjectRef entries with instanceIDs to select one or more Unity objects. - Rich Selection Feedback: Returns full SelectionData including GameObjects, Transforms, instance IDs, asset GUIDs, and the active object. - Use Case: After querying the current selection with the editor-selection-get tool, select a specific set of GameObjects by their instanceIDs so subsequent editor operations target them. ## Quick Start Ask the AI to set the Unity Editor selection to the objects with the given instanceIDs using the editor-selection-set tool.

Frequently Asked Questions about editor-selection-set

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

FAQPage Schema
How do I set the selection in the Unity Editor programmatically?▼

Run the editor-selection-set tool via unity-mcp-cli with a select parameter containing an array of ObjectRef entries, each with an instanceID. The tool updates the Unity Editor selection and returns the resulting SelectionData.

How do I find instanceIDs to select Unity objects?▼

Use the editor-selection-get tool first to retrieve the current selection and its instanceIDs, as recommended in the Skill description. You can also obtain instanceIDs from other Unity MCP query tools that return ObjectRef data.

What input does the Unity selection set tool require?▼

It requires a select field containing an array of ObjectRef objects, each with an integer instanceID. An instanceID of 0 is treated as null. Input can be passed inline, from a JSON file, or via stdin.

What should I do if unity-mcp-cli is not found?▼

Install it globally with npm install -g unity-mcp-cli, or invoke it through npx unity-mcp-cli. Detailed installation steps are available in the unity-initial-setup skill.

What data does the Unity selection tool return?▼

It returns SelectionData with selected GameObjects, top-level Transforms, instance IDs, asset GUIDs, and the active GameObject, Transform, and Object shown in the inspector.