コード例 #1
0
        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();
        }
コード例 #2
0
        public override void OnInspectorGUI()
        {
            if (GUILayout.Button("Level Builder Window"))
            {
                LevelBuilderWindow.Init();
            }

            DrawDefaultInspector();
        }