public static void Init() { LevelBuilderWindow window = (LevelBuilderWindow)EditorWindow.GetWindow(typeof(LevelBuilderWindow)); window.titleContent = new GUIContent("Level Builder"); window.minSize = new Vector2(100, 100); window.floorPlane = new Plane(Vector3.up, t ? t.transform.position : Vector3.zero); window.Show(); }
public override void OnInspectorGUI() { if (GUILayout.Button("Level Builder Window")) { LevelBuilderWindow.Init(); } DrawDefaultInspector(); }