class
Screen
public static abstract sealed class Screen Access screen dimension etc.
Properties
| Name | Type | Description |
|---|---|---|
Size static | Vector2 | The total size of the game screen |
Width static | Single | The width of the game screen. Equal to Screen.x |
Height static | Single | The height of the game screen. Equal to Screen.y |
Aspect static | Single | The aspect ratio of the screen. Equal to Width/Height |
DesktopScale static | Single | The desktop's dpi scale on the current monitor. |
Methods
static Single CreateVerticalFieldOfView(Single fieldOfView) Converts a vertical field of view to a horizontal field of view based on the screen aspect ratio.
static Single CreateVerticalFieldOfView(Single fieldOfView, Single aspectRatio) Converts a vertical field of view to a horizontal field of view based on the given aspect ratio.