Never heard that problem before. If the files exist in the Data folder in the Xcode project, then it's possible these files haven't been correctly copied over to the iOS device when Xcode deploys the app. It's probably worth dumping out the contents of the Data folder:
using UnityEngine;
using System;
using System.IO;
public class filebrowser : MonoBehaviour {
void ProcessFolder(string f) {
Debug.Log("Folder: " + f);
var txtFiles = Directory.GetFiles(f);
foreach (string currentFile in txtFiles) {
Debug.Log("File: " + currentFile);
}
string[] subs = Directory.GetDirectories(f);
foreach(string sub in subs)
ProcessFolder(sub);
}
// Use this for initialization
void Start () {
ProcessFolder(Application.dataPath);
}
// Update is called once per frame
void Update () {
}
}
↧