1. Android平台DownLoad文件夹路径为

DataUrl = Application.persistentDataPath;

DataUrl = DataUrl.Substring(0, DataUrl.IndexOf(“Android”)) +”Download/”;

  • 注意Android需要获取权限
    在进行安装打包的时候,需要在Edit–>ProjectSettings–>Player进行设置(这样才有可以对Android系统上的文件进行操作)
  • Unity--Android,Mac平台的DownLoad文件夹获取方法

2. MacOSX平台的DownLoads文件路径为:

DataUrl = Application.persistentDataPath;

DataUrl = DataUrl.Substring(0, DataUrl.IndexOf(“Library”)) + “Downloads”;

(上面两个下载路径全部都是依靠Application.persistentDataPath找到的)

相关文章:

  • 2022-12-23
  • 2022-01-03
  • 2021-11-19
  • 2021-04-11
  • 2021-07-16
  • 2021-08-06
  • 2022-02-07
  • 2021-08-15
猜你喜欢
  • 2021-06-16
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-12-15
  • 2021-09-23
相关资源
相似解决方案