Files
5.24BuYu/Assets/MyGame/Framework/Tool/UITool/UIPanelAddressConfig.cs
T

29 lines
846 B
C#
Raw Normal View History

2026-07-28 22:56:35 +08:00
using UnityEngine;
/// <summary>UI 面板分组(用于预加载/释放一批面板)</summary>
public enum UIPanelGroup
{
None = 0,
Login = 1, // 登录相关
Home = 2, // 大厅相关
GameFish = 3, // 捕鱼游戏相关
Chess = 4, // 象棋相关
Common = 5, // 公共弹窗(Tishi/HuoDe/Board/Loading 等)
}
2025-12-11 16:40:24 +08:00
[CreateAssetMenu(fileName = "UIPanelAddressConfig", menuName = "UI/UIPanelAddressConfig")]
public class UIPanelAddressConfig : ScriptableObject
{
[System.Serializable]
public struct PanelEntry
{
2025-12-26 11:15:56 +08:00
public string name;
2025-12-11 16:40:24 +08:00
public UIPanel type;
public string address; // Addressables 名称
2026-07-28 22:56:35 +08:00
[Tooltip("分组:用于 PreloadGroup/ReleaseGroup 批量预加载和释放")]
public UIPanelGroup group;
2025-12-11 16:40:24 +08:00
}
public PanelEntry[] panels;
}