Update AssetBundleBuilder

This commit is contained in:
hevinci
2022-03-17 21:52:08 +08:00
parent 7cb0394785
commit 233e477bc8
7 changed files with 150 additions and 25 deletions

View File

@@ -17,14 +17,14 @@ namespace YooAsset.Editor
public BuildSummary Summary = new BuildSummary();
/// <summary>
/// 资源列表
/// 资源对象列表
/// </summary>
public List<ReportBundleInfo> BundleInfos;
public List<ReportAssetInfo> AssetInfos = new List<ReportAssetInfo>();
/// <summary>
/// 冗余的资源列表
/// 资源列表
/// </summary>
public List<string> RedundancyList;
public List<ReportBundleInfo> BundleInfos = new List<ReportBundleInfo>();
/// <summary>

View File

@@ -7,6 +7,24 @@ namespace YooAsset.Editor
[Serializable]
public class ReportAssetInfo
{
/// <summary>
/// 资源路径
/// </summary>
public string AssetPath;
/// <summary>
/// 所属资源包
/// </summary>
public string MainBundle;
/// <summary>
/// 依赖的资源包
/// </summary>
public List<string> DependBundles = new List<string>();
/// <summary>
/// 依赖的资源列表
/// </summary>
public List<string> DependAssets = new List<string>();
}
}

View File

@@ -7,6 +7,39 @@ namespace YooAsset.Editor
[Serializable]
public class ReportBundleInfo
{
/// <summary>
/// 资源包完整名称
/// </summary>
public string BundleName;
/// <summary>
/// 哈希值
/// </summary>
public string Hash;
/// <summary>
/// 文件校验码
/// </summary>
public string CRC;
/// <summary>
/// 文件大小(字节数)
/// </summary>
public long SizeBytes;
/// <summary>
/// 文件版本
/// </summary>
public int Version;
/// <summary>
/// Tags
/// </summary>
public string[] Tags;
/// <summary>
/// Flags
/// </summary>
public int Flags;
}
}