#region WWW下载AssetBundle的资源
/// <summary>
/// WWW下载AssetBundle的资源
/// </summary>
/// <param name="url"></param>
/// <returns></returns>
public static bool UWWWLoad(string url)
{
try
{
var assetBundlename = GetFileName(url);
//目录
string path = AssetBundleLoger.ApplicationPersistentAssets + AssetBundleLoger.GetPathGap();
string filePath = path + assetBundlename + ".zip";
//没有目录就生成
if (!Directory.Exists(path)) Directory.CreateDirectory(path);
//目录下有没有有就不下载
if (File.Exists(path + assetBundlename + ".assetbundle"))
{
return true;
}
WWW www = new WWW(url);
Stopwatch sw &#
C# Unity WWW下载AssetBundle的。zip文件并解压到本地
最新推荐文章于 2024-07-31 15:55:35 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)