Class Screen
Assembly: UnityEngine.dll
Syntax
public sealed class Screen
Properties
|
Improve this Doc
View Source
autorotateToLandscapeLeft
Declaration
public static bool autorotateToLandscapeLeft { get; set; }
Property Value
|
Improve this Doc
View Source
autorotateToLandscapeRight
Declaration
public static bool autorotateToLandscapeRight { get; set; }
Property Value
|
Improve this Doc
View Source
autorotateToPortrait
Declaration
public static bool autorotateToPortrait { get; set; }
Property Value
|
Improve this Doc
View Source
autorotateToPortraitUpsideDown
Declaration
public static bool autorotateToPortraitUpsideDown { get; set; }
Property Value
currentResolution
Declaration
public static Resolution currentResolution { get; }
Property Value
dpi
Declaration
public static float dpi { get; }
Property Value
fullScreen
Declaration
public static bool fullScreen { get; set; }
Property Value
fullScreenMode
Declaration
public static FullScreenMode fullScreenMode { get; set; }
Property Value
height
Declaration
public static int height { get; }
Property Value
|
Improve this Doc
View Source
orientation
Declaration
public static ScreenOrientation orientation { get; set; }
Property Value
resolutions
Declaration
public static Resolution[] resolutions { get; }
Property Value
safeArea
Declaration
public static Rect safeArea { get; }
Property Value
sleepTimeout
Declaration
public static int sleepTimeout { get; set; }
Property Value
width
Declaration
public static int width { get; }
Property Value
Methods
|
Improve this Doc
View Source
SetResolution(Int32, Int32, Boolean)
Declaration
public static void SetResolution(int width, int height, bool fullscreen)
Parameters
|
Improve this Doc
View Source
SetResolution(Int32, Int32, Boolean, Int32)
Declaration
public static void SetResolution(int width, int height, bool fullscreen, [DefaultValue("0")] int preferredRefreshRate)
Parameters
|
Improve this Doc
View Source
SetResolution(Int32, Int32, FullScreenMode)
Declaration
public static void SetResolution(int width, int height, FullScreenMode fullscreenMode)
Parameters
SetResolution(Int32, Int32, FullScreenMode, Int32)
Declaration
public static void SetResolution(int width, int height, FullScreenMode fullscreenMode, [DefaultValue("0")] int preferredRefreshRate)
Parameters
Extension Methods