Skip to content

Commit b2d59dd

Browse files
committed
refactor(UI): 移除隐藏UI组的默认初始化
此更改移除了对UIGroupConstants.Hidden组的自动创建,因为该组不再需要或未被使用。这简化了UI组初始化列表,避免了不必要的资源分配。
1 parent 33fda2b commit b2d59dd

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Runtime/UIComponent.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ public partial class UIComponent : GameFrameworkComponent
9797
new UIGroup(UIGroupConstants.Battle.Depth, UIGroupConstants.Battle.Name),
9898
new UIGroup(UIGroupConstants.Hud.Depth, UIGroupConstants.Hud.Name),
9999
new UIGroup(UIGroupConstants.Map.Depth, UIGroupConstants.Map.Name),
100-
new UIGroup(UIGroupConstants.Hidden.Depth, UIGroupConstants.Hidden.Name),
101100
new UIGroup(UIGroupConstants.Floor.Depth, UIGroupConstants.Floor.Name),
102101
new UIGroup(UIGroupConstants.Normal.Depth, UIGroupConstants.Normal.Name),
103102
new UIGroup(UIGroupConstants.Fixed.Depth, UIGroupConstants.Fixed.Name),

0 commit comments

Comments
 (0)