private static IEnumerable <string> GetAllSupportedFiles() { string projectPath = (!ProjectStateRestHandler.ProjectPath.EndsWith("/")) ? (ProjectStateRestHandler.ProjectPath + "/") : ProjectStateRestHandler.ProjectPath; return(AssetDatabase.GetAllAssetPaths().Where(delegate(string asset) { string text = Path.GetFullPath(asset).ConvertSeparatorsToUnity(); return text.StartsWith(projectPath) && ProjectStateRestHandler.IsSupportedExtension(Path.GetExtension(asset)); })); }
private static IEnumerable <string> GetAllSupportedFiles() { return(from asset in AssetDatabase.GetAllAssetPaths() where ProjectStateRestHandler.IsSupportedExtension(Path.GetExtension(asset)) select asset); }
private static IEnumerable <string> GetAllSupportedFiles() { return(((IEnumerable <string>)AssetDatabase.GetAllAssetPaths()).Where <string>((Func <string, bool>)(asset => ProjectStateRestHandler.IsSupportedExtension(Path.GetExtension(asset))))); }