From 9e0462043cebb3f7c533f4f4813fdfbf37d25670 Mon Sep 17 00:00:00 2001
From: ALEXTANG <574809918@qq.com>
Date: Wed, 19 Jul 2023 17:33:25 +0800
Subject: [PATCH] Update WindowAttribute.cs
---
.../Runtime/GameFramework/UI/WindowAttribute.cs | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/Assets/TEngine/Runtime/GameFramework/UI/WindowAttribute.cs b/Assets/TEngine/Runtime/GameFramework/UI/WindowAttribute.cs
index fa40ce27..7531229b 100644
--- a/Assets/TEngine/Runtime/GameFramework/UI/WindowAttribute.cs
+++ b/Assets/TEngine/Runtime/GameFramework/UI/WindowAttribute.cs
@@ -20,29 +20,27 @@ namespace TEngine
///
/// 窗口层级
///
- public int WindowLayer;
+ public readonly int WindowLayer;
///
/// 资源定位地址。
///
- public string AssetName;
-
+ public readonly string Location;
///
/// 全屏窗口标记。
///
- public bool FullScreen;
-
- public WindowAttribute(int windowLayer,string assetName = "", bool fullScreen = false)
+ public readonly bool FullScreen;
+ public WindowAttribute(int windowLayer,string location = "", bool fullScreen = false)
{
WindowLayer = windowLayer;
- AssetName = assetName;
+ Location = location;
FullScreen = fullScreen;
}
- public WindowAttribute(UILayer windowLayer,string assetName = "", bool fullScreen = false)
+ public WindowAttribute(UILayer windowLayer,string location = "", bool fullScreen = false)
{
WindowLayer = (int)windowLayer;
- AssetName = assetName;
+ Location = location;
FullScreen = fullScreen;
}
}