Compare commits

...

2 Commits

Author SHA1 Message Date
Alex-Rachel
aad8ff3ee5 忽略Gizmos和编辑器资源 source:9bc0577423 2025-01-24 12:59:31 +08:00
Alex-Rachel
df25a1adad Update ResourceExtComponent.Resource.cs
typo
2025-01-22 09:27:42 +08:00
2 changed files with 9 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ namespace TEngine
private void OnLoadAssetFailure(string assetName, LoadResourceStatus status, string errormessage, object userdata) private void OnLoadAssetFailure(string assetName, LoadResourceStatus status, string errormessage, object userdata)
{ {
_assetLoadingList.Remove(assetName); _assetLoadingList.Remove(assetName);
Log.Error("Can not load asset from '{1}' with error message '{2}'.", assetName, errormessage); Log.Error("Can not load asset from '{0}' with error message '{1}'.", assetName, errormessage);
} }
private void OnLoadAssetSuccess(string assetName, object asset, float duration, object userdata) private void OnLoadAssetSuccess(string assetName, object asset, float duration, object userdata)

View File

@@ -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;