public static void UpdateBuildSettings() { var currentIndex = Array.IndexOf(XRPlatform.allPlatforms, XRPlatform.currentPlatform); if (currentIndex < 0) { currentIndex = 0; } var xrTestSuiteConfiguration = new XRTestSuiteConfiguration { buildTarget = XRPlatform.allPlatforms[currentIndex].buildTarget, renderPath = ValidRenderingPaths()[CurrentRenderPathIndex()], stereoRenderingPath = PlayerSettings.stereoRenderingPath, stereoRendering = true, xrSdk = XRSdkDescription.currentSdk }; var scenes = new List <string>(); scenes.AddRange(SceneHelper.GetTestScenePaths().Where(xrTestSuiteConfiguration.ShouldBuildTestScene)); EditorBuildSettings.scenes = scenes.Select(s => new EditorBuildSettingsScene { enabled = true, path = s }).ToArray(); AssetDatabase.SaveAssets(); }
void PopulateTestEntries() { m_Tests.Clear(); var testScenePaths = SceneHelper.GetTestScenePaths(); for (var testSceneIndex = 0; testSceneIndex < testScenePaths.Length; testSceneIndex++) { var scenePath = testScenePaths[testSceneIndex]; var testEntryUi = new TestEntryUI(scenePath, testSceneIndex); m_Tests.Add(testEntryUi); } //Always load from file before writing when recomputing the database UpdateFromFile(m_DataPath); WriteToFile(m_DataPath); Repaint(); }