Class GlobalResolutionSetter
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
Namespace: Global Namespace
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 |
---|---|
Boolean |
SetResolution(RuntimePlatform, Int32, Int32, Boolean)
Declaration
public static bool SetResolution(RuntimePlatform platformFilter, int width = 1920, int height = 1080, bool fullscreen = true)
Parameters
Type | Name | Description |
---|---|---|
RuntimePlatform | platformFilter | |
Int32 | width | |
Int32 | height | |
Boolean | fullscreen |
Returns
Type | Description |
---|---|
Boolean |