From 34f553b9e3f47c9704dece11e80a3d007e5971a6 Mon Sep 17 00:00:00 2001 From: hevinci Date: Thu, 25 May 2023 16:35:18 +0800 Subject: [PATCH] update AssetBundleCollector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复了收集器对着色器未过滤的问题。 --- .../Editor/AssetBundleCollector/AssetBundleCollector.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollector.cs b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollector.cs index 18ca48d..f0ad20b 100644 --- a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollector.cs +++ b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollector.cs @@ -290,10 +290,6 @@ namespace YooAsset.Editor } private bool IsCollectAsset(string assetPath) { - Type assetType = AssetDatabase.GetMainAssetTypeAtPath(assetPath); - if (assetType == typeof(UnityEngine.Shader) || assetType == typeof(UnityEngine.ShaderVariantCollection)) - return true; - // 根据规则设置过滤资源文件 IFilterRule filterRuleInstance = AssetBundleCollectorSettingData.GetFilterRuleInstance(FilterRuleName); return filterRuleInstance.IsCollectAsset(new FilterRuleData(assetPath));