private static void BrowseGameObject(string key, GameObject go) { NGSpotlightWindow.AddEntry(key, new SceneGameObjectDrawer(go)); for (int i = 0; i < go.transform.childCount; i++) { ScenesImporter.BrowseGameObject(key, go.transform.GetChild(i).gameObject); } }
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]); } } }