UnityAPI的Screen.SetResolution()提供四个重载
public static void SetResolution (int width, int height, bool fullscreen);
public static void SetResolution (int width, int height, bool fullscreen, int preferredRefreshRate= 0);
public static void SetResolution (int width, int height, FullScreenMode fullscreenMode);
public static void SetResolution (int width, int height, FullScreenMode fullscreenMode, int preferredRefreshRate= 0);
width : 宽
height : 高
fullscreen : 是否全屏
fullscreenMode : 枚举类型
| ExclusiveFullScreen | 独占模式。 |
| FullScreenWindow | 全屏窗口。 |
| MaximizedWindow | 最大化窗口。 |
| Windowed | 窗口化。 |
评论(0)
暂无评论