private static void ScanScene(UnityEngine.SceneManagement.Scene scene) { NGSpotlightWindow.DeleteKey(scene.path); if (scene.isLoaded == true) { scene.GetRootGameObjects(ScenesImporter.roots); for (int j = 0; j < ScenesImporter.roots.Count; j++) { ScenesImporter.BrowseGameObject(scene.path, ScenesImporter.roots[j]); } } }
public static void DeleteEntry(string key, int i) { List <IDrawableElement> list; if (NGSpotlightWindow.entries.TryGetValue(key, out list) == true) { list.RemoveAt(i); if (list.Count == 0) { NGSpotlightWindow.DeleteKey(key); } } Utility.RepaintEditorWindow(typeof(NGSpotlightWindow)); }
private static void OnSceneClosed(UnityEngine.SceneManagement.Scene scene) { //Debug.Log("Close " + scene.path); NGSpotlightWindow.DeleteKey(scene.path); }