Hello,
I’m trying to make a kind of music player. I intend to create a folder, “music”, in which people will put their songs in.
But I don’t want unity to just open them. I want unity to count the number of songs in the folder and, depending on the number, to take different actions.
Is there any easy way to do this?
Thank you for the help :) I'll try it out as soon as I can
– LostInTimeThanks for this, I found it useful. Just I would look for the extension this way for better precision: if (fi.Extension.Equals (".mp3", StringComparison.OrdinalIgnoreCase)) i++;
– Black_Demon