update AssetBundleCollector

修复了收集器对着色器未过滤的问题。
main
hevinci 2023-05-25 16:35:18 +08:00
parent 25d1e32ce9
commit 34f553b9e3
1 changed files with 0 additions and 4 deletions

View File

@ -290,10 +290,6 @@ namespace YooAsset.Editor
} }
private bool IsCollectAsset(string assetPath) 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); IFilterRule filterRuleInstance = AssetBundleCollectorSettingData.GetFilterRuleInstance(FilterRuleName);
return filterRuleInstance.IsCollectAsset(new FilterRuleData(assetPath)); return filterRuleInstance.IsCollectAsset(new FilterRuleData(assetPath));