mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-27 11:10:11 +00:00
Update DefaultIgnoreRule.cs
忽略Gizmos和编辑器资源
This commit is contained in:
@@ -33,6 +33,14 @@ namespace YooAsset.Editor
|
|||||||
if (AssetDatabase.IsValidFolder(assetInfo.AssetPath))
|
if (AssetDatabase.IsValidFolder(assetInfo.AssetPath))
|
||||||
return true;
|
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))
|
if (assetInfo.AssetType == typeof(LightingDataAsset))
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user