From 8da93ff4472180d538dbb74b2ccac26e4288fb0d Mon Sep 17 00:00:00 2001 From: ALEXTANG <574809918@qq.com> Date: Tue, 11 Apr 2023 16:58:03 +0800 Subject: [PATCH] Update UIModule.cs --- Assets/TEngine/Runtime/GameFramework/UI/UIModule.cs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Assets/TEngine/Runtime/GameFramework/UI/UIModule.cs b/Assets/TEngine/Runtime/GameFramework/UI/UIModule.cs index 735bcd77..b552aebb 100644 --- a/Assets/TEngine/Runtime/GameFramework/UI/UIModule.cs +++ b/Assets/TEngine/Runtime/GameFramework/UI/UIModule.cs @@ -6,15 +6,6 @@ using YooAsset; namespace TEngine { - public enum EUIGroup - { - Bottom, - UI, - Top, - Tips, - System, - } - /// /// UI模块。 /// @@ -31,6 +22,7 @@ namespace TEngine private readonly List _stack = new List(100); + public const int LAYER_DEEP = 2000; public const int WINDOW_DEEP = 100; public const int WINDOW_HIDE_LAYER = 2; // Ignore Raycast public const int WINDOW_SHOW_LAYER = 5; // UI @@ -333,7 +325,7 @@ namespace TEngine private void OnSortWindowDepth(int layer) { - int depth = layer; + int depth = layer * LAYER_DEEP; for (int i = 0; i < _stack.Count; i++) { if (_stack[i].WindowLayer == layer)