From 9bc05774232a577bc25c0814db6c90f6028f196b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Tue, 10 Dec 2024 15:18:34 +0800 Subject: [PATCH] Update DefaultIgnoreRule.cs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 忽略Gizmos和编辑器资源 --- .../DefaultRules/DefaultIgnoreRule.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Assets/YooAsset/Editor/AssetBundleCollector/DefaultRules/DefaultIgnoreRule.cs b/Assets/YooAsset/Editor/AssetBundleCollector/DefaultRules/DefaultIgnoreRule.cs index f516e782..36172444 100644 --- a/Assets/YooAsset/Editor/AssetBundleCollector/DefaultRules/DefaultIgnoreRule.cs +++ b/Assets/YooAsset/Editor/AssetBundleCollector/DefaultRules/DefaultIgnoreRule.cs @@ -33,6 +33,14 @@ namespace YooAsset.Editor if (AssetDatabase.IsValidFolder(assetInfo.AssetPath)) return true; + // 忽略编辑器图标资源 + if (assetInfo.AssetPath.Contains("/Gizmos/")) + return true; + + // 忽略编辑器专属资源 + if (assetInfo.AssetPath.Contains("/Editor/") || assetInfo.AssetPath.Contains("/Editor Resources/")) + return true; + // 忽略编辑器下的类型资源 if (assetInfo.AssetType == typeof(LightingDataAsset)) return true;