This commit is contained in:
CroakFang
2023-03-29 16:08:13 +08:00
parent f342c77c60
commit 3714ea45e1
4 changed files with 7 additions and 3 deletions
-1
View File
@@ -31,7 +31,6 @@ public class UmaViewerDownload : MonoBehaviour
public static void DownloadAssetSync(UmaDatabaseEntry entry,string path, Action<string , UIMessageType> callback = null)
{
callback?.Invoke($"Downloading AssetBundle: {Path.GetFileName(entry.Name)}", UIMessageType.Default);
string baseurl = (string.IsNullOrEmpty(Path.GetExtension(entry.Name)) ? GetAssetRequestUrl(entry.Url) : GetGenericRequestUrl(entry.Url));
using UnityWebRequest www = UnityWebRequest.Get(baseurl);