2022-03-19 00:41:50 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using UnityEditor;
|
|
|
|
|
|
|
|
|
|
|
|
namespace YooAsset.Editor
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 构建参数
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class BuildParameters
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 验证构建结果
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool VerifyBuildingResult = false;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 输出的根目录
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string OutputRoot;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 构建的平台
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public BuildTarget BuildTarget;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 构建的版本(资源版本号)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int BuildVersion;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 启用自动分包机制
|
|
|
|
|
|
/// 说明:自动分包机制可以实现资源零冗余
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool EnableAutoCollect = true;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 追加文件扩展名
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool AppendFileExtension = false;
|
|
|
|
|
|
|
2022-03-23 17:18:43 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 加密类
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public IEncryptionServices EncryptionServices;
|
|
|
|
|
|
|
2022-03-19 00:41:50 +08:00
|
|
|
|
|
2022-04-22 15:14:37 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 演练构建模式
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool DryRunBuild;
|
|
|
|
|
|
|
2022-03-19 00:41:50 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 强制重新构建整个项目,如果为FALSE则是增量打包
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool ForceRebuild;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 内置资源的标记列表
|
|
|
|
|
|
/// 注意:分号为分隔符
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string BuildinTags;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 压缩选项
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public ECompressOption CompressOption;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 文件名附加上哈希值
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool AppendHash = false;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 禁止写入类型树结构(可以降低包体和内存并提高加载效率)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool DisableWriteTypeTree = false;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 忽略类型树变化
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool IgnoreTypeTreeChanges = true;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 禁用名称查找资源(可以降内存并提高加载效率)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool DisableLoadAssetByFileName = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获取内置标记列表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public List<string> GetBuildinTags()
|
|
|
|
|
|
{
|
|
|
|
|
|
return StringUtility.StringToStringList(BuildinTags, ';');
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|