SetResolution
This has the same functionality as Screen.SetResolution and also mimics platform-specific behavior in the Unity Editor.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Device
- Assembly: UnityEngine.CoreModule
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
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
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)