Version: 2022.3

Screen.SetResolution

切换到手册
public static void SetResolution (int width, int height, FullScreenMode fullscreenMode, RefreshRate preferredRefreshRate);
public static void SetResolution (int width, int height, FullScreenMode fullscreenMode);
public static void SetResolution (int width, int height, bool fullscreen);

描述

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