这里采取Application.streamingPath定义的路径来读取
测试路径:string path = Application.streamingPath + "/xx.txt";
一、Android平台需要WWW类去读取,使用C#空间下的System.IO中的Stream 读取不到。
二、IOS平台类似pc端,可以直接使用System.IO中的Stream读取。
案例代码:
这里采取Application.streamingPath定义的路径来读取
测试路径:string path = Application.streamingPath + "/xx.txt";
一、Android平台需要WWW类去读取,使用C#空间下的System.IO中的Stream 读取不到。
二、IOS平台类似pc端,可以直接使用System.IO中的Stream读取。
案例代码:
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。