diff --git a/Assets/Scripts/UI/UIBgAdaptive.cs b/Assets/Scripts/UI/UIBgAdaptive.cs index 976c72d7c5..69947ef52e 100644 --- a/Assets/Scripts/UI/UIBgAdaptive.cs +++ b/Assets/Scripts/UI/UIBgAdaptive.cs @@ -24,7 +24,7 @@ public class UIBgAdaptive : MonoBehaviour //float curHeight = 1920 * (Screen.height / Screen.width) / (1920 / 1080); //float curWidth = (1080f / 1920f) * curHeight; //bgList[i].GetComponent().sizeDelta = new Vector2(curWidth, curHeight); - if (Screen.height >= 1920) + if (Screen.height/Screen.width >= 1920/1080f) { //--计算比例因子 比例因子 = 10 ^ ((lg(屏幕宽 / 开发宽) + lg(屏幕高 / 开发高) / 2)) //local log = math.log(Screen.width / 1080, 10) + math.log(Screen.height / 1920, 10)