Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

Screen.SetResolution

Declaration

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

Declaration

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

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.