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

26 lines
887 B
C#

using System;
using UnityEngine;
using Object = UnityEngine.Object;
namespace CaoCao.Editor
{
[CreateAssetMenu(fileName = nameof(AssetPack), menuName = "CaoCao/XAsset/" + nameof(AssetPack))]
public class AssetPack : ScriptableObject
{
public enum DeliveryMode
{
InstallTime,
FastFollow,
OnDemand
}
public int id;
[TextArea] public string desc;
[Tooltip("交付模式: \n" +
"InstallTime:资源包中的资源打包后的相关文件包含在安装包中,首次读条的时候下载更新。\n" +
"FastFollow:资源包中的资源打包后的相关文件不包含在安装包中,下载更新时机同上。 \n" +
"OnDemand:资源包中的资源打包后的相关文件不包含在安装包中,按需进行下载更新。")]
public DeliveryMode deliveryMode = DeliveryMode.OnDemand;
public Object[] assets = Array.Empty<Object>();
}
}