scene-set-active

Set a specified opened Unity scene as the active scene via asset reference validation.

3.8k|349|Updated Apr 2, 2025
One-click install
npx skills add https://github.com/IvanMurzak/Unity-MCP --skill scene-set-active-ivanmurzak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scene-set-active
Source: https://github.com/IvanMurzak/Unity-MCP/tree/main/Unity-MCP-Plugin/.claude/skills/scene-set-active
Command: npx skills add https://github.com/IvanMurzak/Unity-MCP --skill scene-set-active-ivanmurzak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Set the specified opened Unity scene as the active scene to ensure the correct context for editing and testing when multiple scenes are open.

Core Features & Use Cases

  • Activate a chosen opened scene as the active scene in the Unity Editor to streamline scene workflows.
  • Integrate with scene listing tools to reliably identify candidates and apply activation in automation scenarios.
  • Use Case: when several scenes are open, switch focus to the desired scene to continue editing or playtesting.

Quick Start

Call the tool with a sceneRef pointing to the target scene to set it as the active scene.

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 an active scene in the Unity Editor when multiple scenes are open?

To set an active scene in the Unity Editor, provide a sceneRef asset reference pointing to the target scene. The tool validates the reference against Assets or Packages and applies the active scene state for consistent editing and playtesting.

What is a sceneRef asset reference for Unity scene management?

A sceneRef asset reference is a pointer to a Unity scene asset used by automation tools. It must reference a valid Unity object within the Assets or Packages folders to successfully change the active scene context.

Why does my Unity sceneRef validation fail during editor automation?

SceneRef validation fails during Unity editor automation if the reference does not point to a valid Unity object within the Assets or Packages directories. Ensure the target scene is properly imported and the asset path is correct.

Can I use Unity scene automation tools for playtesting with multiple open scenes?

Yes, Unity scene automation tools are designed for playtesting with multiple open scenes. They allow you to programmatically switch focus and set the desired scene as active, ensuring the correct context is applied during editing and playtesting.

What's the best way to switch focus between open scenes in Unity automation?

The best way to switch focus between open scenes in Unity automation is to use a dedicated set-active scene tool. It reliably identifies the target scene via a validated sceneRef and applies the active state programmatically.