Skip to main content
Glama
SceneRef.cs1.52 kB
/* ┌────────────────────────────────────────────────────────────────────────┐ │ Author: Ivan Murzak (https://github.com/IvanMurzak) │ │ Repository: GitHub (https://github.com/IvanMurzak/MCP-Plugin-dotnet) │ │ Copyright (c) 2025 Ivan Murzak │ │ Licensed under the Apache License, Version 2.0. │ │ See the LICENSE file in the project root for more information. │ └────────────────────────────────────────────────────────────────────────┘ */ #nullable enable using System.ComponentModel; namespace com.IvanMurzak.Unity.MCP.Runtime.Data { [Description(@"Scene reference. Used to find a Scene.")] public class SceneRef : ObjectRef { public string Path { get; set; } = string.Empty; public int BuildIndex { get; set; } = -1; public SceneRef() { } public SceneRef(int instanceID) { this.InstanceID = instanceID; } public SceneRef(UnityEngine.SceneManagement.Scene scene) { this.InstanceID = scene.GetHashCode(); this.Path = scene.path; this.BuildIndex = scene.buildIndex; } } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/IvanMurzak/Unity-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server