void OnEnable()
 {
     titleContent = new GUIContent("XR Tests");
     m_Self       = this;
     PopulateTestEntries();
     BuildOverride.SetOverride(false);
 }
Exemplo n.º 2
0
    void OnGUI()
    {
        //bool build = false;
        using (new EditorGUILayout.HorizontalScope(EditorStyles.toolbar))
        {
            if (ToolbarButton("New", "Create a new test scene."))
            {
                SceneHelper.CreateNewTestScene();
                return;
            }

            if (ToolbarButton("Refresh", "Refresh the list of tests, in case tests that were added/removed are not reflected in the list."))
            {
                PopulateTestEntries();
            }

            GUILayout.FlexibleSpace();

            bool override_toggle = ToolbarToggle(BuildOverride.override_build, "Override Scene List", "True to override the scenes in the Build Setting's scene list with the settings below.");
            if (override_toggle != BuildOverride.override_build)
            {
                BuildOverride.SetOverride(override_toggle);
            }
        }


        DrawTestList();
    }