string dir = Application.persistentDataPath;//万能路径,打包前打包后移动端都可用,该路径可读、可写,但是只能在程序运行时才能读写操作,不能提前将数据放入这个路径。 #if UNITY_EDITOR dir = Application.streamingAssetsPath;//打包前可用 #endif #if (UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR dir = Application.persistentDataPath; #endif
浙公网安备 33010602011771号