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)