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
|
|
|
|
|
|
{
|
2022-07-15 19:34:59 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// SBP构建参数
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class SBPBuildParameters
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 生成代码防裁剪配置
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool WriteLinkXML = true;
|
2022-07-22 12:56:22 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 缓存服务器地址
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string CacheServerHost;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 缓存服务器端口
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int CacheServerPort;
|
2022-07-15 19:34:59 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 可编程构建管线的参数
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public SBPBuildParameters SBPParameters;
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-19 00:41:50 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 输出的根目录
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string OutputRoot;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 构建的平台
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public BuildTarget BuildTarget;
|
|
|
|
|
|
|
2022-07-15 19:34:59 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 构建管线
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public EBuildPipeline BuildPipeline;
|
|
|
|
|
|
|
2022-05-02 23:15:09 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 构建模式
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public EBuildMode BuildMode;
|
|
|
|
|
|
|
2022-03-19 00:41:50 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 构建的版本(资源版本号)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int BuildVersion;
|
|
|
|
|
|
|
2022-05-02 23:15:09 +08:00
|
|
|
|
/// <summary>
|
2022-05-21 22:24:05 +08:00
|
|
|
|
/// 内置资源标签集合(首包资源标签)
|
2022-05-02 23:15:09 +08:00
|
|
|
|
/// 注意:分号为分隔符
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string BuildinTags;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 验证构建结果
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool VerifyBuildingResult = false;
|
|
|
|
|
|
|
2022-04-28 17:23:31 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 启用可寻址资源定位
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool EnableAddressable = false;
|
|
|
|
|
|
|
2022-03-19 00:41:50 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 追加文件扩展名
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool AppendFileExtension = false;
|
|
|
|
|
|
|
2022-05-21 22:24:05 +08:00
|
|
|
|
/// <summary>
|
2022-06-10 10:50:27 +08:00
|
|
|
|
/// 拷贝内置资源文件到StreamingAssets目录(首包资源文件)
|
2022-05-21 22:24:05 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool CopyBuildinTagFiles = false;
|
|
|
|
|
|
|
2022-03-19 00:41:50 +08:00
|
|
|
|
|
2022-04-22 15:14:37 +08:00
|
|
|
|
/// <summary>
|
2022-05-02 23:15:09 +08:00
|
|
|
|
/// 加密类
|
2022-03-19 00:41:50 +08:00
|
|
|
|
/// </summary>
|
2022-05-02 23:15:09 +08:00
|
|
|
|
public IEncryptionServices EncryptionServices = null;
|
2022-03-19 00:41:50 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 压缩选项
|
|
|
|
|
|
/// </summary>
|
2022-05-02 23:15:09 +08:00
|
|
|
|
public ECompressOption CompressOption = ECompressOption.Uncompressed;
|
2022-03-19 00:41:50 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 禁止写入类型树结构(可以降低包体和内存并提高加载效率)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool DisableWriteTypeTree = false;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 忽略类型树变化
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool IgnoreTypeTreeChanges = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-05-21 22:24:05 +08:00
|
|
|
|
/// 获取内置资源标签列表(首包资源标签)
|
2022-03-19 00:41:50 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public List<string> GetBuildinTags()
|
|
|
|
|
|
{
|
|
|
|
|
|
return StringUtility.StringToStringList(BuildinTags, ';');
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-07-15 19:34:59 +08:00
|
|
|
|
|
|
|
|
|
|
|
2022-03-19 00:41:50 +08:00
|
|
|
|
}
|