・Android
streamingAssetsのパスに普通のパスとして直接アクセスできない。
よって、File.Copyが使用できない。
Streaming AssetからPersistent DataPathへコピーして、
Persistent DataPathにアクセスするのが主流になる。
Application.streamingAssetsPathには、"www"でアクセスすることになる。
・コピーもこうなる。
string originalDB = Application.streamingAssetsPath + "/file_name.db"; WWW www = new WWW(originalDB); yield return www; string path = Application.persistentDataPath + "/file_name.db"; File.WriteAllBytes(path, www.bytes);
・iOS
streamingAssetsのパスに普通のパスとして直接アクセスできる。
Application.streamingAssetsPathには、wwwを使わずアクセス可能。
Application.streamingAssetsPathに読み書きもできるようだ。
Streaming AssetからPersistent DataPathへコピーして、
Persistent DataPathにアクセスすることもできる。
その際に、File.Copyが使用できる。
テラシュールウェアさんのURL: http://terasur.blog.fc2.com/blog-entry-266.html
Androidでは出来ないの記述はなかったが、こちらで行ってるのはiOSのみのはず。