string dir = Application.persistentDataPath;//万能路径,打包前打包后移动端都可用,该路径可读、可写,但是只能在程序运行时才能读写操作,不能提前将数据放入这个路径。 #if UNITY_EDITOR dir = Application.streamingAssetsPath;//打包前可用 #endif #if (UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR dir = Application.persistentDataPath; #endif标签:存档,路径,UNITY,Application,Unity,打包,&&,dir From: https://www.cnblogs.com/zerobeyond/p/17555910.html