This version of Unity is unsupported.

Screen.SetResolution

Declaration

public static void SetResolution(int width, int height, FullScreenMode fullscreenMode, int preferredRefreshRate = 0);

Declaration

public static void SetResolution(int width, int height, FullScreenMode fullscreenMode);

Declaration

public static void SetResolution(int width, int height, bool fullscreen, int preferredRefreshRate = 0);

Declaration

public static void SetResolution(int width, int height, bool fullscreen);

Description

This has the same functionality as Screen.SetResolution and also mimics platform-specific behavior in the Unity Editor.