From d47c0bf4b67f9d6a84b24ad8b81298ba4e5fd335 Mon Sep 17 00:00:00 2001 From: hevinci Date: Mon, 29 Aug 2022 12:11:16 +0800 Subject: [PATCH] Update AssetBundleCollector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复无法识别.bank类似音频文件格式。 --- .../Editor/AssetBundleCollector/AssetBundleCollector.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollector.cs b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollector.cs index 0cef4e3..df40e99 100644 --- a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollector.cs +++ b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollector.cs @@ -200,11 +200,13 @@ namespace YooAsset.Editor return false; // 忽略Unity无法识别的无效文件 + /* if (type == typeof(UnityEditor.DefaultAsset)) { UnityEngine.Debug.LogWarning($"Cannot pack default asset : {assetPath}"); return false; } + */ string ext = System.IO.Path.GetExtension(assetPath); if (ext == "" || ext == ".dll" || ext == ".cs" || ext == ".js" || ext == ".boo" || ext == ".meta" || ext == ".cginc")