SetResolution
This has the same functionality as Screen.SetResolution and also mimics platform-specific behavior in the Unity Editor.
阅读时间1 分钟最后更新于 1 个月前
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)