feat : 在SBP构建管线里,自动建立主资源对象对图集的依赖关系

This commit is contained in:
何冠峰
2025-08-29 19:06:55 +08:00
parent e1b6458c26
commit a5138b9846
3 changed files with 38 additions and 2 deletions
@@ -62,6 +62,17 @@ namespace YooAsset.Editor
return false;
}
/// <summary>
/// 是否为图集资源
/// </summary>
public bool IsSpriteAtlas()
{
if (AssetType == typeof(UnityEngine.U2D.SpriteAtlas))
return true;
else
return false;
}
public int CompareTo(AssetInfo other)
{
return this.AssetPath.CompareTo(other.AssetPath);