Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetResolution

This has the same functionality as Screen.SetResolution and also mimics platform-specific behavior in the Unity Editor.
Read time 1 minuteLast updated 6 days ago

Definition

SetResolution(int, int, FullScreenMode, RefreshRate)

This has the same functionality as Screen.SetResolution and also mimics platform-specific behavior in the Unity Editor.
public static void SetResolution(int width, int height, FullScreenMode fullscreenMode, RefreshRate preferredRefreshRate)

Parameters

width


height


fullscreenMode


preferredRefreshRate

SetResolution(int, int, FullScreenMode)

This has the same functionality as Screen.SetResolution and also mimics platform-specific behavior in the Unity Editor.
public static void SetResolution(int width, int height, FullScreenMode fullscreenMode)

Parameters

width


height


fullscreenMode

SetResolution(int, int, bool)

This has the same functionality as Screen.SetResolution and also mimics platform-specific behavior in the Unity Editor.
public static void SetResolution(int width, int height, bool fullscreen)

Parameters

width


height


fullscreen