ZERO_BEYOND

博客园 首页 联系 订阅 管理
    string dir = Application.persistentDataPath;//万能路径,打包前打包后移动端都可用,该路径可读、可写,但是只能在程序运行时才能读写操作,不能提前将数据放入这个路径。
#if UNITY_EDITOR
        dir = Application.streamingAssetsPath;//打包前可用
#endif
#if (UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR
dir = Application.persistentDataPath;
#endif
posted on 2023-07-15 11:56  ZERO_BEYOND  阅读(95)  评论(0)    收藏  举报