增加获取layer接口

This commit is contained in:
陈思海 2026-03-20 19:43:55 +08:00
parent 28874ac17d
commit 0c0e2243d4
2 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,7 @@ namespace AlicizaX.UI.Runtime
/// </summary>
Transform UICanvasRoot { get; set; }
RectTransform GetLayer(UILayer layer);
// ───────────────────────────────────────────────
// Show 系列:异步为主,同步为辅
// ───────────────────────────────────────────────

View File

@ -50,6 +50,11 @@ namespace AlicizaX.UI.Runtime
InitUIBlock();
}
public RectTransform GetLayer(UILayer layer)
{
return m_AllWindowLayer[(int)layer];
}
private void AddLayer(int layer)
{
var layerObject = new GameObject($"Layer{layer}-{(UILayer)layer}");