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.

猜你喜欢

转载自www.cnblogs.com/Peng18233754457/p/9240249.html