// Find all game objects in the specified list (or descendants) that refer to scripts which no longer exist. public static GameObject[] FindGameObjectsWithMissingScripts(IEnumerable <GameObject> gameObjects) { MissingComponentFinder finder = new MissingComponentFinder(); finder.Traverse(gameObjects); return(finder.GameObjectsWithMissingComponents); }
// Find all game objects in the specified list (or descendants) that refer to scripts which no longer exist. public static GameObject[] FindGameObjectsWithMissingScripts(IEnumerable<GameObject> gameObjects) { MissingComponentFinder finder = new MissingComponentFinder(); finder.Traverse(gameObjects); return finder.GameObjectsWithMissingComponents; }