找回密码
 立即注册
前几天有个朋友问我为什么在IOS平台中可以正常的读写文件可是在Android平台中就无法正常的读写。其时由于在上班所以我没时间来帮他管理,晚上回家后我就拿起安卓手机真机调试很快就定位问题所在,本来是他文件的途径写错了。开发中往往一道很难的问题解开的时候发现本来真的十分的简单,哇咔咔。刚好在MOMO的书中也有涉及到文件的读取与注入,那么本节我将书中的部分内容搬到博客中为大家解说一下。废话我就不多说了咱直奔主题,创建Text.cs脚本,直接挂在摄像机中。代码中包括:创建文件、读取文件、删去文件。

(A friend of mine asked me the other day why I could normally read and write files on the IOS platform, but not on the Android platform. At that time, because I was at work, I didn't have time to help him manage. When I got home at night, I picked up my Android phone and debugged it. I quickly located the problem. It was his way of writing the file that was wrong. When solving a difficult problem in development, I find that it is really simple. It happens that the MOMO book also involves file reading and injection. In this section, I will move some of the contents of the book to the blog for you to explain. I won't talk much nonsense. Let's go straight to the topic, create a Text.cs script, and hang it directly in the camera. The code includes creating files, reading files, and deleting files.)

[下载]14351798245.rar




上一篇:Android NDK编译CC++结合Unity实现本地数据共享(二十八) 文档
下一篇:Unity3D研究院之Android NDK编译(二十八)源码