class Screen
Access screen dimension etc.
public static Vector2 Size { get; }
The total size of the game screen
public static float Width { get; }
The width of the game screen. Equal to Screen.x
public static float Height { get; }
The height of the game screen. Equal to Screen.y
public static float Aspect { get; }
The aspect ratio of the screen. Equal to Width/Height
public static float DesktopScale { get; }
The desktop's dpi scale on the current monitor.
public static float CreateVerticalFieldOfView( float fieldOfView )
Converts a vertical field of view to a horizontal field of view based on the screen aspect ratio.
public static float CreateVerticalFieldOfView( float fieldOfView, float aspectRatio )
Converts a vertical field of view to a horizontal field of view based on the given aspect ratio.
public Type GetType( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.