From aad8ff3ee5d590ebd12c2bdfd9ef056b0a706cfd Mon Sep 17 00:00:00 2001 From: Alex-Rachel <574809918@qq.com> Date: Fri, 24 Jan 2025 12:59:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=BD=E7=95=A5Gizmos=E5=92=8C=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=99=A8=E8=B5=84=E6=BA=90=20source:https://github.co?= =?UTF-8?q?m/tuyoogame/YooAsset/commit/9bc05774232a577bc25c0814db6c90f6028?= =?UTF-8?q?f196b?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DefaultRules/DefaultIgnoreRule.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/UnityProject/Packages/YooAsset/Editor/AssetBundleCollector/DefaultRules/DefaultIgnoreRule.cs b/UnityProject/Packages/YooAsset/Editor/AssetBundleCollector/DefaultRules/DefaultIgnoreRule.cs index f516e782..36172444 100644 --- a/UnityProject/Packages/YooAsset/Editor/AssetBundleCollector/DefaultRules/DefaultIgnoreRule.cs +++ b/UnityProject/Packages/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;