editor-selection-get

Solid

Get information about the current Selection in the Unity Editor — active object, active transform, selected GameObjects, transforms, instance IDs, and asset GUIDs (each enrichment is opt-in). Pair with 'editor-selection-set' to change the selection.

AI & Automation 2,976 stars 277 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Editor / Selection / Get Get information about the current Selection in the Unity Editor. Use 'editor-selection-set' tool to set the selection. ## Toggles (default off where indicated to keep responses small) - `includeGameObjects` (default `false`) — populate `GameObjects[]`. - `includeTransforms` (default `false`) — populate `Transforms[]` as `ComponentRef`s. - `includeInstanceIDs` (default `false`) — populate `InstanceIDs[]`. - `includeAssetGUIDs` (default `false`) — populate `AssetGUIDs[]` from project-window selection. - `includeActiveObject` (default `true`) — populate `ActiveObject` as a generic `ObjectRef`. - `includeActiveTransform` (default `true`) — populate `ActiveTransform` as a `ComponentRef`. `ActiveGameObject` and `ActiveInstanceID` are always populated. ## How to Call ```bash unity-mcp-cli run-tool editor-selection-get --input '{ "includeGameObjects": false, "includeTransforms": false, "includeInstanceIDs": false, "includeAssetGUIDs": false, "includeActiveObject": false, "includeActiveTransform": false }' ``` > For complex input (multi-line strings, code), save the JSON to a file and use: > ```bash > unity-mcp-cli run-tool editor-selection-get --input-file args.json > ``` > > Or pipe via stdin (recommended): > ```bash > unity-mcp-cli run-tool editor-selection-get --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...

Details

Author
IvanMurzak
Repository
IvanMurzak/Unity-MCP
Created
1 years ago
Last Updated
today
Language
C#
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category