From 0c0e2243d4f69ab07479180a2e9ee7a8e3d6c7ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E6=B5=B7?= <1464576565@qq.com> Date: Fri, 20 Mar 2026 19:43:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8E=B7=E5=8F=96layer?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/UI/Manager/IUIModule.cs | 1 + Runtime/UI/Manager/UIModule.Initlize.cs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Runtime/UI/Manager/IUIModule.cs b/Runtime/UI/Manager/IUIModule.cs index 3c1474b..fb1f9b2 100644 --- a/Runtime/UI/Manager/IUIModule.cs +++ b/Runtime/UI/Manager/IUIModule.cs @@ -28,6 +28,7 @@ namespace AlicizaX.UI.Runtime /// Transform UICanvasRoot { get; set; } + RectTransform GetLayer(UILayer layer); // ─────────────────────────────────────────────── // Show 系列:异步为主,同步为辅 // ─────────────────────────────────────────────── diff --git a/Runtime/UI/Manager/UIModule.Initlize.cs b/Runtime/UI/Manager/UIModule.Initlize.cs index f17d021..4e2303f 100644 --- a/Runtime/UI/Manager/UIModule.Initlize.cs +++ b/Runtime/UI/Manager/UIModule.Initlize.cs @@ -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}");