在这里插入图片描述

这次这么测试是对的,下次再有问题再看看😢

写入的时候这样写的:

        fileLocal = Application.persistentDataPath + "/" + path;
        finalPath =
#if UNITY_ANDROID && !UNITY_EDITOR
            fileLocal;
#else
        "file://" + fileLocal;
#endif

读取的时候这样写的:

        path =
#if UNITY_ANDROID && !UNITY_EDITOR
                     Application.persistentDataPath
#elif UNITY_STANDALONE_WIN || UNITY_EDITOR
                      Application.persistentDataPath
#endif
                      + dataSetPath;
Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐