Class GlobalResolutionSetter
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Global Namespace
Assembly: UnityEngine.TestTools.Graphics.dll
Syntax
public class GlobalResolutionSetter : MonoBehaviour
Fields
customResolutionSettings
Declaration
public CustomResolutionSettings customResolutionSettings
Field Value
Type | Description |
---|---|
CustomResolutionSettings |
Methods
SetResolution(CustomResolutionFields)
Declaration
public static bool SetResolution(CustomResolutionFields resolutionFields)
Parameters
Type | Name | Description |
---|---|---|
CustomResolutionFields | resolutionFields |
Returns
Type | Description |
---|---|
bool |
SetResolution(RuntimePlatform, int, int, bool)
Declaration
public static bool SetResolution(RuntimePlatform platformFilter, int width = 1920, int height = 1080, bool fullscreen = true)
Parameters
Type | Name | Description |
---|---|---|
RuntimePlatform | platformFilter | |
int | width | |
int | height | |
bool | fullscreen |
Returns
Type | Description |
---|---|
bool |