1
我试图通过按下Unity 3D游戏中的按钮来创建一个.txt文件。 它在PC上完美运行,但是当我尝试使用Android时,没有任何反应。StreamWriter不适用于Android(Unity3D)
我错过了什么?
public void Play(){
TextWriter tw = new StreamWriter("helloWorld.txt", true);
tw.WriteLine(System.DateTime.Now);
tw.Close();
}
PlayerSettings-> OtherSettings-> WriteAccess to External(SDCard)已经打开。