editor-selection-set

editor-selection-set is a skill for Claude Code, Codex from IvanMurzak/Unity-MCP. It costs 47 tokens per session (1,867 once invoked), scanned A, original, Apache-2.0.

A Unity Editor tool for selecting specific objects in the current project view. Unity is a game development editor, and the selection is what appears as active in its scene, hierarchy, or inspector views.

In plain words
What is it for?
Use it to select GameObjects or other Unity objects programmatically, then inspect or modify them with other tools.
Why use it?
It makes the intended objects active for inspection or later editing. Every supplied object must exist, so invalid references are rejected before the selection changes.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ivanmurzak/unity-mcp/editor-selection-set
Any agent
npx skills add IvanMurzak/Unity-MCP --skill editor-selection-set
Clone the repo
git clone --depth 1 https://github.com/IvanMurzak/Unity-MCP

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for editor-selection-set

README.md
[![agentmods](https://agentmods.dev/badge/skills/ivanmurzak/unity-mcp/editor-selection-set.svg)](https://agentmods.dev/skills/ivanmurzak/unity-mcp/editor-selection-set)
Your own site
<a href="https://agentmods.dev/skills/ivanmurzak/unity-mcp/editor-selection-set"><img src="https://agentmods.dev/badge/skills/ivanmurzak/unity-mcp/editor-selection-set.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,867 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00047 $0.01867
Opus 5 $0.00023 $0.00933
Sonnet 5 $0.00009 $0.00373
Haiku 4.5 $0.00005 $0.00187

Measured 4d ago against content hash 6eeaf922133a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

editor-selection-set scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Unity-MCP-Plugin/.claude/skills/editor-selection-set/SKILL.md · 245 lines

How it starts

The opening of the file, as written. The whole thing — 245 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Editor / Selection / Set

Set the current Selection in the Unity Editor to the provided objects. Use 'editor-selection-get' tool to get the current selection first.

Inputs

  • select — array of ObjectRef. Every entry MUST resolve via FindObject(); otherwise the tool throws before touching Selection.objects.

Behavior

Assigns the resolved array to Selection.objects, then calls UnityEditorInternal.InternalEditorUtility.RepaintAllViews() so Hierarchy/Inspector reflect the change. Returns the post-change SelectionData snapshot.

How to Call

unity-mcp-cli run-tool editor-selection-set --input '{
  "select": "string_value"
}'

For complex input (multi-line strings, code), save the JSON to a file and use:

unity-mcp-cli run-tool editor-selection-set --input-file args.json

Or pipe via stdin (recommended):

unity-mcp-cli run-tool editor-selection-set --input-file - <<'EOF'
{"param": "value"}
EOF

Troubleshooting

If unity-mcp-cli is not found, either install it globally (npm install -g unity-mcp-cli) or use npx unity-mcp-cli instead. Read the /unity-initial-setup skill for detailed installation instructions.

Input

Name Type Required Description
select any Yes

Input JSON Schema

{
  "type": "object",
  "properties": {
    "select": {
      "$ref": "#/$defs/AIGD.ObjectRef-1"
    }
  },
  "$defs": {
    "AIGD.ObjectRef": {
      "type": "object",
      "properties": {
        "instanceID": {
          "type": "integer",
          "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'."
        }
      },
      "required": [
        "instanceID"
      ],
      "description": "Reference to UnityEngine.Object instance. It could be GameObject, Component, Asset, etc. Anything extended from UnityEngine.Object."
    },
    "AIGD.ObjectRef-1": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AIGD.ObjectRef",
        "description": "Reference to UnityEngine.Object instance. It could be GameObject, Component, Asset, etc. Anything extended from UnityEngine.Object."
      }
    }
  },
  "required": [
    "select"
  ]
}

Read the full file on GitHub · 245 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 245 lines · 47 tokens per session scan A 6eeaf922133a

Subscribe to this mod's changes

editor-selection-set is a skill published in the GitHub repository IvanMurzak/Unity-MCP (4,079 stars, last pushed 9d ago), licensed Apache-2.0. It adds 47 tokens to every session and 1,867 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.