mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-06-18 18:03:42 +00:00
update AssetInfo
This commit is contained in:
@@ -125,6 +125,19 @@ namespace YooAsset
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 资源标签集合
|
||||
/// </summary>
|
||||
public PackageTags Tags
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_packageAsset == null)
|
||||
return PackageTags.Empty;
|
||||
return _packageAsset.Tags;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 创建有效的资源信息实例
|
||||
/// </summary>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user