【适配】添加ui默认实际大小
parent
3692b7d6f8
commit
b1ab868a17
|
|
@ -118,6 +118,9 @@ function UIManager.Adapter()
|
|||
UIManager.width = Screen.width
|
||||
UIManager.height = Screen.height
|
||||
|
||||
-- 默认实际分辨率
|
||||
UIManager.UIHeight = 1920
|
||||
UIManager.UIWidth = 1080
|
||||
|
||||
this.canvasScaler.matchWidthOrHeight = 0.5
|
||||
-- 计算屏幕比例的比值,用于部分界面进行屏幕适配的缩放
|
||||
|
|
|
|||
Loading…
Reference in New Issue