scene-set-active

Sets an opened Unity scene as the Editor's active scene via EditorSceneManager.

Updated May 27, 2026
One-click install
npx skills add https://github.com/AdielMag/ClashUp --skill scene-set-active-adielmag
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: scene-set-active
Source: https://github.com/AdielMag/ClashUp/tree/main/client/ClashUp.Unity/.claude/skills/scene-set-active
Command: npx skills add https://github.com/AdielMag/ClashUp --skill scene-set-active-adielmag

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? When working with multiple opened scenes in the Unity Editor, new GameObjects and many editor operations target the active scene. This Skill lets you programmatically designate which opened scene is active, avoiding manual clicks in the Hierarchy window. ## Core Features & Use Cases - Set Active Scene: Resolves a SceneAsset reference and calls EditorSceneManager.SetActiveScene on the matching opened scene. - Flexible Scene Resolution: Matches the opened scene by name first, then by path, using an AssetObjectRef (instanceID, asset path, or GUID). - State Snapshot: Returns the post-call list of opened scenes so you can verify the result. - Use Case: While building a multi-scene level, open your environment and lighting scenes, then set the environment scene active so newly created GameObjects land in the correct scene. ## Quick Start Ask the AI to set the scene at Assets/Scenes/Environment.unity as the active scene using the scene-set-active tool.

Frequently Asked Questions about scene-set-active

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

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

Use EditorSceneManager.SetActiveScene with the target scene. This Skill resolves a SceneAsset reference, finds the matching opened scene by name then path, and calls SetActiveScene for you.

How to change which scene new GameObjects are added to in Unity?▼

New GameObjects are added to the active scene. Set the desired opened scene as active with this tool, and subsequent GameObject creation operations will target that scene.

Does the scene need to be opened before setting it active?▼

Yes, the scene must already be opened in the Editor. Use the scene-list-opened tool first to enumerate opened scenes and obtain a valid scene reference.

What happens if the scene is already the active scene?▼

The operation is a no-op when the scene is already active. The tool still returns the post-call snapshot of all opened scenes so you can confirm the current state.

Why does scene-set-active fail to find my scene?▼

The lookup matches opened scenes by name then by path. If the scene is not opened or the AssetObjectRef (instanceID, path, or GUID) does not resolve to a SceneAsset, no matching scene is found.