码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2015-06-19 18:37:33      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:

这里采取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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!