Beispiel #1
0
        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]);
                }
            }
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
 private static void     OnSceneClosed(UnityEngine.SceneManagement.Scene scene)
 {
     //Debug.Log("Close " + scene.path);
     NGSpotlightWindow.DeleteKey(scene.path);
 }