Unity Screen Screen.currentResolution 当前分辨率

The current screen resolution (Read Only).

当前屏幕的分辨率。(只读)

If the player is running in window mode, this returns the current resolution of the desktop.

如果播放器是运行在窗口模式,则返回的是当前桌面的分辨率。

 

在显示器上调节分辨率不起作用,返回的是当前显示器的分辨率,如:

调节此显示器的分辨率为1600x900,currentResolution 返回的还是1920x1080.

posted @ 2018-06-28 18:59  朋丶Peng  阅读(3172)  评论(0编辑  收藏  举报