update asset system

修复了WEBGL平台加载原生文件失败的问题
pull/62/head
hevinci 2023-02-09 16:57:01 +08:00
parent 8893317f59
commit 1c2bbfea93
1 changed files with 5 additions and 2 deletions

View File

@ -350,8 +350,11 @@ namespace YooAsset
return loader;
// 新增下载需求
#if UNITY_WEBGL
loader = new AssetBundleWebLoader(this, bundleInfo);
#if !UNITY_WEBGL
if (bundleInfo.Bundle.IsRawFile)
loader = new RawBundleFileLoader(this, bundleInfo);
else
loader = new AssetBundleWebLoader(this, bundleInfo);
#else
if (bundleInfo.Bundle.IsRawFile)
loader = new RawBundleFileLoader(this, bundleInfo);