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