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,7 +350,10 @@ namespace YooAsset
return loader; return loader;
// 新增下载需求 // 新增下载需求
#if UNITY_WEBGL #if !UNITY_WEBGL
if (bundleInfo.Bundle.IsRawFile)
loader = new RawBundleFileLoader(this, bundleInfo);
else
loader = new AssetBundleWebLoader(this, bundleInfo); loader = new AssetBundleWebLoader(this, bundleInfo);
#else #else
if (bundleInfo.Bundle.IsRawFile) if (bundleInfo.Bundle.IsRawFile)