标签:
这里采取Application.streamingPath定义的路径来读取
测试路径:string path = Application.streamingPath + "/xx.txt";
一、Android平台需要WWW类去读取,使用C#空间下的System.IO中的Stream 读取不到。
二、IOS平台类似pc端,可以直接使用System.IO中的Stream读取。
案例代码:
Unity下的StreamingAssets路径不同平台的读取
标签:
原文地址:http://www.cnblogs.com/constantine-house/p/4589325.html