From c898f146c6f54dc5ece138ae6652f39a54292c55 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 16 九月 2025 10:09:58 +0800
Subject: [PATCH] 0312 适配调整
---
Main/System/UIBase/UIBase.cs | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/Main/System/UIBase/UIBase.cs b/Main/System/UIBase/UIBase.cs
index 92e6529..a6d45e7 100644
--- a/Main/System/UIBase/UIBase.cs
+++ b/Main/System/UIBase/UIBase.cs
@@ -109,7 +109,8 @@
private CanvasScaler canvasScaler;
- public const int SafeWidth = 60;
+ public const int SafeHeightUp = 50;
+ public const int SafeHeightDown = 30;
#endregion
#region Unity鐢熷懡鍛ㄦ湡
@@ -140,8 +141,8 @@
if (Screen.height / Screen.width > 1.8)//瀹藉睆闇�瑕侀�傞厤
{
//涓婁笅鍚勯棿闅擲afeWidth
- _rectTransform.offsetMax = new Vector2(0, -SafeWidth); //涓�
- // _rectTransform.offsetMin = new Vector2(0, SafeWidth); //涓�
+ _rectTransform.offsetMax = new Vector2(0, -SafeHeightUp); //涓�
+ _rectTransform.offsetMin = new Vector2(0, SafeHeightDown); //涓�
}
originalPosition = _rectTransform.anchoredPosition;
}
--
Gitblit v1.8.0