Beispiel #1
0
    //public void OnInspectorUpdate()
    //{
    //    // This will only get called 10 times per second.
    //    Repaint();
    //}

    void OnGUI()
    {
        EditorWindow.FocusWindowIfItsOpen(typeof(CustomBuildErrorWindow));
        BuildStage[] allStages = { BuildStage.SETUP_ENV,       BuildStage.IDLE,
                                   BuildStage.UNITY_EXPORT,    BuildStage.PROJECT_BUILD,
                                   BuildStage.PROJECT_INSTALL, BuildStage.PROJECT_RUN };

        LoadErrorEditorPrefbs(allStages);

        if (instance != null)
        {
            instance.ErrorGUI(allStages);
        }

        else
        {
            instance = (CustomBuildErrorWindow)
                       EditorWindow.GetWindowWithRect(
                typeof(CustomBuildErrorWindow),
                new Rect(0, 0, 600, 500),
                false,
                "Custom Build Errors"
                );
        }
    }