Reading All file Names in StreamingAssets Folder using WWW (C#)

I am trying to create a program in Android Unity that retrieves all file names from StreamingAssets Folder as a string array. I know that DirectoryInfo does not really work on Android apk and I also know that WWW is recommended to use instead. I’ve been researching how to use WWW feature but all I can find are examples of getting a single file name or answers that doesn’t work. Can anybody direct me on how I can read all files (with file extensions so that i can filter them out later based on file type) in Android Unity?

Source: android

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.