Skip to content

Commit aad8ff3

Browse files
committed
忽略Gizmos和编辑器资源 source:tuyoogame/YooAsset@9bc0577
1 parent df25a1a commit aad8ff3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

UnityProject/Packages/YooAsset/Editor/AssetBundleCollector/DefaultRules/DefaultIgnoreRule.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ public bool IsIgnore(AssetInfo assetInfo)
3333
if (AssetDatabase.IsValidFolder(assetInfo.AssetPath))
3434
return true;
3535

36+
// 忽略编辑器图标资源
37+
if (assetInfo.AssetPath.Contains("/Gizmos/"))
38+
return true;
39+
40+
// 忽略编辑器专属资源
41+
if (assetInfo.AssetPath.Contains("/Editor/") || assetInfo.AssetPath.Contains("/Editor Resources/"))
42+
return true;
43+
3644
// 忽略编辑器下的类型资源
3745
if (assetInfo.AssetType == typeof(LightingDataAsset))
3846
return true;

0 commit comments

Comments
 (0)