Maybe a dump question, but I can’t get it.
I used following code to get all the names of files stored in a certain folder:
foreach (string File in System.IO.Directory.GetFiles(Path))
{
//SproutList.Add(File as AudioClip);
}
Now, all of those files are soundfiles. I need them to be in a list. How can I access the file as AudioClip or choose a certain file for my AudioSource by the name I have now?