unity Android安卓平台读取Application.persistentDataPath路径
这次这么测试是对的,下次再有问题再看看😢写入的时候这样写的:fileLocal = Application.persistentDataPath + "/" + path;finalPath =#if UNITY_ANDROID && !UNITY_EDITORfileLocal;#else"file://" + fileLocal;#endif读取的时候这样写的:path =#
·
这次这么测试是对的,下次再有问题再看看😢
写入的时候这样写的:
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;
更多推荐
已为社区贡献1条内容
所有评论(0)