Show / Hide Table of Contents

Class Screen

Inheritance
Object
Screen
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public sealed class Screen

Properties

| Improve this Doc View Source

autorotateToLandscapeLeft

Declaration
public static bool autorotateToLandscapeLeft { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

autorotateToLandscapeRight

Declaration
public static bool autorotateToLandscapeRight { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

autorotateToPortrait

Declaration
public static bool autorotateToPortrait { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

autorotateToPortraitUpsideDown

Declaration
public static bool autorotateToPortraitUpsideDown { get; set; }
Property Value
Type Description
Boolean

currentResolution

Declaration
public static Resolution currentResolution { get; }
Property Value
Type Description
Resolution

dpi

Declaration
public static float dpi { get; }
Property Value
Type Description
Single

fullScreen

Declaration
public static bool fullScreen { get; set; }
Property Value
Type Description
Boolean

fullScreenMode

Declaration
public static FullScreenMode fullScreenMode { get; set; }
Property Value
Type Description
FullScreenMode

height

Declaration
public static int height { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

orientation

Declaration
public static ScreenOrientation orientation { get; set; }
Property Value
Type Description
ScreenOrientation

resolutions

Declaration
public static Resolution[] resolutions { get; }
Property Value
Type Description
Resolution[]

safeArea

Declaration
public static Rect safeArea { get; }
Property Value
Type Description
Rect

sleepTimeout

Declaration
public static int sleepTimeout { get; set; }
Property Value
Type Description
Int32

width

Declaration
public static int width { get; }
Property Value
Type Description
Int32

Methods

| Improve this Doc View Source

SetResolution(Int32, Int32, Boolean)

Declaration
public static void SetResolution(int width, int height, bool fullscreen)
Parameters
Type Name Description
Int32 width
Int32 height
Boolean fullscreen
| 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
Type Name Description
Int32 width
Int32 height
Boolean fullscreen
Int32 preferredRefreshRate
| Improve this Doc View Source

SetResolution(Int32, Int32, FullScreenMode)

Declaration
public static void SetResolution(int width, int height, FullScreenMode fullscreenMode)
Parameters
Type Name Description
Int32 width
Int32 height
FullScreenMode fullscreenMode

SetResolution(Int32, Int32, FullScreenMode, Int32)

Declaration
public static void SetResolution(int width, int height, FullScreenMode fullscreenMode, [DefaultValue("0")] int preferredRefreshRate)
Parameters
Type Name Description
Int32 width
Int32 height
FullScreenMode fullscreenMode
Int32 preferredRefreshRate

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX