【适配】添加ui默认实际大小

gaoxin 2020-11-26 11:22:56 +08:00
parent 3692b7d6f8
commit b1ab868a17
1 changed files with 3 additions and 0 deletions

View File

@ -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
-- 计算屏幕比例的比值,用于部分界面进行屏幕适配的缩放