s&box docs

public static abstract sealed class Sandbox.Screen

Access screen dimension etc.

Broader workflow and conceptual references connected to this API.

Methods

Showing 2 methods

Properties

Showing 5 properties

public static float Sandbox.Screen.Aspect { get; set; }

The aspect ratio of the screen. Equal to Width/Height

public static float Sandbox.Screen.DesktopScale { get; set; }

The desktop's dpi scale on the current monitor.

public static float Sandbox.Screen.Height { get; set; }

The height of the game screen. Equal to Screen.y

public static Vector2 Sandbox.Screen.Size { get; set; }

The total size of the game screen

public static float Sandbox.Screen.Width { get; set; }

The width of the game screen. Equal to Screen.x

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Screen

On this page