string path = Application.dataPath + "/Resources/**";
DirectoryInfo theFolder = new DirectoryInfo(path);
FileInfo[] fileInfo = theFolder.GetFiles("*.png", SearchOption.TopDirectoryOnly);
foreach (FileInfo f in fileInfo)
{
string str = f.Name;
}