I’m trying to use Directory.getFiles in the editor and then later I wanted to use it on the iphone.
import System.IO;
import System.IO.Directory;
filelist=Directory.GetFiles(Application.dataPath);//the path in the editor is to the assets folder which has a bunch of stuff in it.
for(i=0;i<filelist.length;i++){
Debug.Log(files*);*
-
}*
I just get back index argument out of range.
Dan