From 7f41af05265f669b1ad7d7b81badecf7c448e031 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 15 九月 2025 22:33:08 +0800
Subject: [PATCH] 0312 适配调整
---
Main/System/UIBase/UIBase.cs | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Main/System/UIBase/UIBase.cs b/Main/System/UIBase/UIBase.cs
index 59236e8..92e6529 100644
--- a/Main/System/UIBase/UIBase.cs
+++ b/Main/System/UIBase/UIBase.cs
@@ -109,6 +109,7 @@
private CanvasScaler canvasScaler;
+ public const int SafeWidth = 60;
#endregion
#region Unity鐢熷懡鍛ㄦ湡
@@ -136,6 +137,12 @@
// 淇濆瓨鍘熷鍊肩敤浜庡姩鐢�
if (_rectTransform != null)
{
+ if (Screen.height / Screen.width > 1.8)//瀹藉睆闇�瑕侀�傞厤
+ {
+ //涓婁笅鍚勯棿闅擲afeWidth
+ _rectTransform.offsetMax = new Vector2(0, -SafeWidth); //涓�
+ // _rectTransform.offsetMin = new Vector2(0, SafeWidth); //涓�
+ }
originalPosition = _rectTransform.anchoredPosition;
}
--
Gitblit v1.8.0