From 3f22fb72ee8cdcc87b66530b00ec9f26b9f276c8 Mon Sep 17 00:00:00 2001 From: ALEXTANG <574809918@qq.com> Date: Mon, 3 Apr 2023 20:43:15 +0800 Subject: [PATCH] Update WindowAttribute.cs --- .../Runtime/GameFramework/UI/WindowAttribute.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Assets/TEngine/Runtime/GameFramework/UI/WindowAttribute.cs b/Assets/TEngine/Runtime/GameFramework/UI/WindowAttribute.cs index e89496f6..9d11da1a 100644 --- a/Assets/TEngine/Runtime/GameFramework/UI/WindowAttribute.cs +++ b/Assets/TEngine/Runtime/GameFramework/UI/WindowAttribute.cs @@ -6,7 +6,12 @@ namespace TEngine public class WindowAttribute : Attribute { /// - /// 资源实体可寻址路径/路径。 + /// 窗口层级 + /// + public int WindowLayer; + + /// + /// 资源定位地址。 /// public string AssetName; @@ -15,8 +20,9 @@ namespace TEngine /// public bool FullScreen; - public WindowAttribute(string assetName, bool fullScreen = false) + public WindowAttribute(int windowLayer,string assetName = "", bool fullScreen = false) { + WindowLayer = windowLayer; AssetName = assetName; FullScreen = fullScreen; }