浏览代码

fix android load from streamingasset with folder

/siyaoH-1.17-PlatformMessage
siyao 4 年前
当前提交
e940372f
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 5
      com.unity.uiwidgets/Runtime/engine2/AndroidPlatformUtil.cs

5
com.unity.uiwidgets/Runtime/engine2/AndroidPlatformUtil.cs


dir = "";
return dir + file;
}
File.WriteAllBytes(dir + file, unpackerWWW.bytes); // 64MB limit on File.WriteAllBytes.
System.IO.FileInfo fileInfo = new System.IO.FileInfo(dir + file);
fileInfo.Directory.Create();
System.IO.File.WriteAllBytes(fileInfo.FullName, unpackerWWW.bytes);
}
return dir + file;

正在加载...
取消
保存