API ReferenceSandbox
Screenclass
Access screen dimension etc.
object→Screen
Methods2
Showing 2 methods
No results match this filter.
Properties5
Showing 5 properties
public static float Sandbox.Screen.Aspect { get; set; }
The aspect ratio of the screen. Equal to Width/Height
Returns:
float—public static float Sandbox.Screen.DesktopScale { get; set; }
The desktop's dpi scale on the current monitor.
Returns:
float—public static float Sandbox.Screen.Height { get; set; }
The height of the game screen. Equal to Screen.y
Returns:
float—public static float Sandbox.Screen.Width { get; set; }
The width of the game screen. Equal to Screen.x
Returns:
float—No results match this filter.