string dir = Application.persistentDataPath;//万能路径,打包前打包后移动端都可用,该路径可读、可写,但是只能在程序运行时才能读写操作,不能提前将数据放入这个路径。 #if UNITY_EDITOR dir = Application.streamingAssetsPath;//打包前可用 #endif #if (UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR dir = Application.persistentDataPath; #endif
Unity资源&&配置存档路径问题
发布时间 2023-07-15 12:04:40作者: ZERO_BEYOND