TheInitialProject/Assets/CaoCao/Scripts/Editor/XAsset/Build/Config/Build.cs
2024-10-23 16:59:02 +08:00

26 lines
842 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using UnityEditor;
using UnityEngine;
namespace CaoCao.Editor
{
[Serializable]
public class BuildParameters
{
[Tooltip("打包的序号,默认为 0当序号 > 0 时,会以此序号作为最终生成的数据的版本号")]
public int buildNumber;
[Tooltip("是否为分包,分包表示为在该包下载完成前,不会热更包内资源")]
public bool subPackage; //是否分包
public bool optimizeDependentAssets = true;
public bool forceRebuild;
public BuildAssetBundleOptions options = BuildAssetBundleOptions.ChunkBasedCompression;
public BuildGroup[] groups;
public string name { get; set; }
}
[CreateAssetMenu(menuName = "CaoCao/XAsset/" + nameof(Build), fileName = nameof(Build))]
public class Build : ScriptableObject
{
public BuildParameters parameters;
}
}