mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-22 16:50:18 +00:00
Update AssetBundleBuilder
This commit is contained in:
@@ -12,9 +12,9 @@ namespace YooAsset.Editor
|
||||
public class BuildReport
|
||||
{
|
||||
/// <summary>
|
||||
/// 构建汇总信息
|
||||
/// 汇总信息
|
||||
/// </summary>
|
||||
public BuildSummary Summary = new BuildSummary();
|
||||
public ReportSummary Summary = new ReportSummary();
|
||||
|
||||
/// <summary>
|
||||
/// 资源对象列表
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
using System;
|
||||
using UnityEditor;
|
||||
|
||||
namespace YooAsset.Editor
|
||||
{
|
||||
[Serializable]
|
||||
public class BuildSummary
|
||||
{
|
||||
/// <summary>
|
||||
/// 引擎版本
|
||||
/// </summary>
|
||||
public string UnityVersion;
|
||||
|
||||
/// <summary>
|
||||
/// 构建时间
|
||||
/// </summary>
|
||||
public string BuildTime;
|
||||
|
||||
/// <summary>
|
||||
/// 构建耗时(单位:秒)
|
||||
/// </summary>
|
||||
public int BuildSeconds;
|
||||
|
||||
/// <summary>
|
||||
/// 构建平台
|
||||
/// </summary>
|
||||
public BuildTarget BuildTarget;
|
||||
|
||||
/// <summary>
|
||||
/// 构建版本
|
||||
/// </summary>
|
||||
public int BuildVersion;
|
||||
|
||||
/// <summary>
|
||||
/// 是否开启冗余机制
|
||||
/// </summary>
|
||||
public bool ApplyRedundancy;
|
||||
|
||||
/// <summary>
|
||||
/// 是否开启文件后缀名
|
||||
/// </summary>
|
||||
public bool AppendFileExtension;
|
||||
|
||||
#region 着色器
|
||||
public bool IsCollectAllShaders;
|
||||
public string ShadersBundleName;
|
||||
#endregion
|
||||
|
||||
#region 构建参数
|
||||
public bool IsForceRebuild;
|
||||
public string BuildinTags;
|
||||
public ECompressOption CompressOption;
|
||||
public bool IsAppendHash;
|
||||
public bool IsDisableWriteTypeTree;
|
||||
public bool IsIgnoreTypeTreeChanges;
|
||||
public bool IsDisableLoadAssetByFileName;
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
using System;
|
||||
using UnityEditor;
|
||||
|
||||
namespace YooAsset.Editor
|
||||
{
|
||||
[Serializable]
|
||||
public class ReportSummary
|
||||
{
|
||||
/// <summary>
|
||||
/// 引擎版本
|
||||
/// </summary>
|
||||
public string UnityVersion;
|
||||
|
||||
/// <summary>
|
||||
/// 构建时间
|
||||
/// </summary>
|
||||
public string BuildTime;
|
||||
|
||||
/// <summary>
|
||||
/// 构建耗时(单位:秒)
|
||||
/// </summary>
|
||||
public int BuildSeconds;
|
||||
|
||||
/// <summary>
|
||||
/// 构建平台
|
||||
/// </summary>
|
||||
public BuildTarget BuildTarget;
|
||||
|
||||
/// <summary>
|
||||
/// 构建版本
|
||||
/// </summary>
|
||||
public int BuildVersion;
|
||||
|
||||
/// <summary>
|
||||
/// 启用自动分包机制
|
||||
/// </summary>
|
||||
public bool EnableAutoCollect;
|
||||
|
||||
/// <summary>
|
||||
/// 追加文件扩展名
|
||||
/// </summary>
|
||||
public bool AppendFileExtension;
|
||||
|
||||
/// <summary>
|
||||
/// 自动收集着色器
|
||||
/// </summary>
|
||||
public bool AutoCollectShaders;
|
||||
|
||||
/// <summary>
|
||||
/// 自动收集的着色器资源包名
|
||||
/// </summary>
|
||||
public string ShadersBundleName;
|
||||
|
||||
// 构建参数
|
||||
public bool ForceRebuild;
|
||||
public string BuildinTags;
|
||||
public ECompressOption CompressOption;
|
||||
public bool AppendHash;
|
||||
public bool DisableWriteTypeTree;
|
||||
public bool IgnoreTypeTreeChanges;
|
||||
public bool DisableLoadAssetByFileName;
|
||||
|
||||
// 构建结果
|
||||
public int AssetFileTotalCount;
|
||||
public int AllBundleTotalCount;
|
||||
public long AllBundleTotalSize;
|
||||
public int BuildinBundleTotalCount;
|
||||
public long BuildinBundleTotalSize;
|
||||
public int EncryptedBundleTotalCount;
|
||||
public long EncryptedBundleTotalSize;
|
||||
public int RawBundleTotalCount;
|
||||
public long RawBundleTotalSize;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user