Skip to content

Instantly share code, notes, and snippets.

View emptybraces's full-sized avatar

{} emptybraces

View GitHub Profile
@emptybraces
emptybraces / ContextMenuSceneLoadUnload.cs
Last active January 15, 2025 10:22
ヒエラルキービューで選択しているシーン以外を一括でオープン/クローズするエディタ拡張。
namespace Emptybraces.Editor
{
using UnityEngine;
using UnityEditor;
using UnityEngine.SceneManagement;
using UnityEditor.SceneManagement;
// Editor extension that toggles the open/close state of all scenes except the one currently selected in the Hierarchy view.
internal static class ContextMenuSceneLoadUnload
{
[InitializeOnLoadMethod]