UnityTest.IntegrationTestsRunnerWindow.BackgroundSceneChangeWatch C# (CSharp) Méthode

BackgroundSceneChangeWatch() private static méthode

private static BackgroundSceneChangeWatch ( ) : void
Résultat void
        private static void BackgroundSceneChangeWatch()
        {
            if (!s_Instance) return;
#if UNITY_5_3_OR_NEWER
            var currentScene = SceneManager.GetActiveScene().path;
#else
			var currentScene = Application.loadedLevelName;
#endif
            if (s_Instance.m_CurrectSceneName != null && s_Instance.m_CurrectSceneName == currentScene) return;
            if (EditorApplication.isPlayingOrWillChangePlaymode) return;
            TestComponent.DestroyAllDynamicTests();
            s_Instance.m_CurrectSceneName = currentScene;
            s_Instance.m_ResultList.Clear();
            s_Instance.RebuildTestList();
        }