从本地读取模型文件:
//读取本地的模型文件 IEnumerator LoadModelFromLocal() { string s = null; #if UNITY_ANDROID s = "jar:file://" + Application.persistentDataPath + "/" + "Model.assetbundle"; #elif UNITY_IPHONE s = path+"/"+name; #elif UNITY_STANDALONE_WIN || UNITY_EDITOR s = "file://"+path+"/"+name; #endif WWW w = new WWW(s); yield return w; if (w.isDone) { Instantiate(w.assetBundle.mainAsset); } }删除文件
void DeleteFile(string path, string name) { File.Delete(path + "//" + name); }FR:海涛高软(hunk Xu)
