|
|
@@ -54,6 +54,7 @@ namespace Utility.UIAdapter
|
|
|
var safeArea = Screen.safeArea;
|
|
|
float ratio = _canvasScaler.referenceResolution.y * _canvasScaler.matchWidthOrHeight / Screen.height -
|
|
|
_canvasScaler.referenceResolution.x * (_canvasScaler.matchWidthOrHeight - 1) / Screen.width;
|
|
|
+ Debug.Log("安全区域:" + safeArea.xMin + " " + safeArea.yMin+" "+ safeArea.xMax+" "+ safeArea.yMax+" ratio:"+ ratio);
|
|
|
if (anchorPointType == AnchorPointType.Up)
|
|
|
{
|
|
|
if (safeArea.yMin > 0)
|