update AssetInfo

This commit is contained in:
何冠峰
2026-06-18 14:14:50 +08:00
parent 092af257d7
commit 868a186199
3 changed files with 20 additions and 2 deletions

View File

@@ -125,6 +125,19 @@ namespace YooAsset
}
}
/// <summary>
/// 资源标签集合
/// </summary>
public PackageTags Tags
{
get
{
if (_packageAsset == null)
return PackageTags.Empty;
return _packageAsset.Tags;
}
}
/// <summary>
/// 创建有效的资源信息实例
/// </summary>

View File

@@ -22,8 +22,8 @@ namespace YooAsset
public const int FileVersion = 2;
/// <summary>
/// 文件最小合法大小(39字节)
/// 文件最小合法大小(41字节)
/// </summary>
public const int MinFileSize = 39;
public const int MinFileSize = 41;
}
}

View File

@@ -7,6 +7,11 @@ namespace YooAsset
/// </summary>
public class PackageTags
{
/// <summary>
/// 空标签集合
/// </summary>
public static readonly PackageTags Empty = new PackageTags(Array.Empty<string>());
private readonly string[] _tags;
/// <summary>