Skip to content

Instantly share code, notes, and snippets.

@Syy9
Created July 28, 2018 06:37
Show Gist options
  • Save Syy9/aa1a811f33253850fa86329c3b22ea47 to your computer and use it in GitHub Desktop.
Save Syy9/aa1a811f33253850fa86329c3b22ea47 to your computer and use it in GitHub Desktop.

Revisions

  1. Syy9 created this gist Jul 28, 2018.
    13 changes: 13 additions & 0 deletions GetHierarchyWindow.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    using System.Collections;
    using UnityEditor;
    using UnityEngine;

    public static class GetHierarchyWindow
    {
    private static EditorWindow GetWindow()
    {
    var assembly = typeof(UnityEditor.EditorWindow).Assembly;
    var type = assembly.GetType("UnityEditor.SceneHierarchyWindow");
    return EditorWindow.GetWindow(type);
    }
    }