Unity下的StreamingAssets路径不同平台的读取

这里采取Application.streamingPath定义的路径来读取

 

测试路径:string path = Application.streamingPath + "/xx.txt";

一、Android平台需要WWW类去读取,使用C#空间下的System.IO中的Stream 读取不到。

二、IOS平台类似pc端,可以直接使用System.IO中的Stream读取。

 

案例代码:

 

posted @ 2015-06-19 17:28  Constantine的小屋  阅读(4571)  评论(0)    收藏  举报