StreamingAssets文件夹在不同平台上的引用

On a desktop computer (Mac OS or Windows) the location of the files can be obtained with the following code:

path = Application.dataPath + "/StreamingAssets";

On iOS, use:

path = Application.dataPath + "/Raw";

On Android, use:

path = "jar:file://" + Application.dataPath + "!/assets/";

 

以上

posted @ 2016-09-28 16:57  斩断最后的不死  阅读(1429)  评论(0编辑  收藏  举报