public static string[] GetUselessFiles(IEnumerable <string> filePaths) { var selectObjects = filePaths .Where(f => !UnityApi.IsSceneFile(f)) .Where(File.Exists) .Select(AssetDatabase.LoadAssetAtPath <Object>) .ToArray(); return(selectObjects .Where(obj => !Tracker.FindReferences(obj).Any()) .Select(AssetDatabase.GetAssetPath) .OrderBy(f => f) .ToArray()); }