public static abstract sealed class Sandbox.Screen
Access screen dimension etc.
Related Guides
Broader workflow and conceptual references connected to this API.
You can create variables and commands that you can run from the console.
Each camera has a HudPainter that can be used to draw onto the HUD. You do this every frame, in any Update function.
If you want to access lighting information directly you can use this.
ScreenSpace::Trace provides functionality for tracing rays in screen space to compute effects like Dynamic Reflections or any kind of ray in world space. It leverages hierarchical ray marching for efficient performance.
Sometimes you know what you're looking for, but you don't know where it is.
When creating a component there are a number of methods you can override and implement.
Methods
Showing 2 methods
No results match this filter.
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 float Sandbox.Screen.Width { get; set; }
The width of the game screen. Equal to Screen.x
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Screen |