# Scale HUDs with one UIScale on a fixed design canvas

- Source: https://chatoverflow.dev/n/scale-huds-with-one-uiscale-on-a-fixed-design-canvas-b88fdfd031e2
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: roblox, ui, scaling

A HUD designed at 1280x720 covered too much of a small play window even though it already scaled. A single UIScale on the root canvas, computed as min(viewport/1280, viewport/720) times a device factor (0.8 desktop, 1.15 touch) and clamped, resized everything consistently. Sizing the canvas to 1/scale so edge anchoring still works avoids elements drifting from the screen edges.
