Skip to content
Version 2.11.0
↓ Get the launcher

IFramework.CanvasWidth property

Width of the window overlay in CANVAS UNITS (design space) = ScreenWidth ÷ UI scaleFactor. Position and size windows in these units so they scale with the UI (WindowRect is in canvas units). For HUD sizing that must track physical pixels, use ScreenWidth instead.

public int CanvasWidth { get; }