UI Scaling in Unreal (DPI Curve) vs Unity (Canvas Scaler)
How game UI scales across resolutions in Unreal Engine's UMG and Unity's uGUI, with the settings that work for 16:9, ultrawide, 4:3 and Steam Deck.
In this article
You design your HUD at 1920 × 1080, it looks perfect, and then a player with an ultrawide monitor sends a screenshot where the minimap floats in the middle of nowhere. Or someone on a Steam Deck cannot read the text. Both engines have good tools to handle this, but they work differently. Here is how.
The two ideas you need
- Reference resolution: the size you design at, usually 1920 × 1080.
- Scale factor: how much the engine scales your UI on the real screen.
From these follows the layout canvas: the screen size divided by the scale factor, in your design units. If the layout canvas is wider than your reference, your UI has extra horizontal space to deal with. If it is narrower, things can overlap or fall off the screen.
Unreal Engine: the DPI curve
UMG uses a DPI scaling curve (Project Settings → Engine → User Interface). By default:
- The rule is Shortest Side: the scale depends on the smaller of width and height.
- The curve maps that size to a scale: about 0.444 at 480, 0.666 at 720, 1.0 at 1080 and higher above.
So on a 2560 × 1080 ultrawide, the shortest side is 1080, the scale is 1.0, and the layout canvas is 2560 × 1080: 640 units wider than your design. On a 1280 × 800 Steam Deck the scale is about 0.74 and the canvas about 1730 × 1080.
You can change the rule (Longest Side, Horizontal, Vertical) and edit the curve.
Unity: the Canvas Scaler
Set the Canvas Scaler to Scale With Screen Size with a Reference Resolution (for example 1920 × 1080). The Screen Match Mode decides how it scales:
- Match Width Or Height with the Match slider:
- 0 = scale by width
- 1 = scale by height
- values in between blend the two on a logarithmic scale
- Expand: the canvas is never smaller than the reference in either direction.
- Shrink: the canvas is never larger than the reference.
For landscape PC and console games, Match 0.5 to 1 is a common choice: ultrawide screens get extra width instead of a bigger UI that is cut off at the top and bottom.
Anchors do the real work
Scaling only decides the size. Anchors decide where things go when the canvas is wider or narrower than your design:
- Health bar: anchor to the top-left corner.
- Minimap: top-right corner.
- Hotbar: bottom center.
- Menus: center.
In UMG, set anchors on Canvas Panel slots. In Unity, set RectTransform anchors. The most common mistake is anchoring everything to the center: it looks perfect at 16:9 and wrong everywhere else.
Screens to test
| Screen | Aspect | Why |
|---|---|---|
| 1920 × 1080 | 16:9 | Your reference |
| 2560 × 1080, 3440 × 1440 | 21:9 | Ultrawide players |
| 1280 × 800 | 16:10 | Steam Deck: small, readable text matters |
| 1024 × 768 | 4:3 | Narrow screens, older displays |
| Phone landscape | ~19.5:9 | Notches and home indicators |
See it before you build it
The free UI Scaling & Safe Zone Checker shows the scale factor and layout canvas for all these screens, using Unreal's default DPI curve or Unity's Canvas Scaler with any Match value. Drop in a mockup to see how your design fits, with corner-anchored HUD elements, a title safe area and phone notches drawn on top.
Summary
- Design at 1920 × 1080 and know your layout canvas on other screens.
- Unreal: DPI curve on the shortest side by default (1080 → 1.0).
- Unity: Scale With Screen Size, Match 0.5–1 for landscape games.
- Anchor HUD to corners and edges, menus to the center.
- Test ultrawide, Steam Deck and 4:3.
Frequently asked questions
What resolution should I design my game UI for?
1920 × 1080 is the most common reference for PC and console games. Design there, then check ultrawide (21:9), 16:10 (Steam Deck) and 4:3.
What does Match do in Unity's Canvas Scaler?
With Scale With Screen Size, Match 0 scales the UI by screen width, 1 by screen height, and values in between blend the two on a logarithmic scale.
How does Unreal scale UMG widgets?
With the DPI curve in Project Settings > Engine > User Interface. By default the scale is based on the shortest side of the viewport: 1080 pixels gives 1.0, 720 gives about 0.666 and 2160 about 2.0.
Why does my UI break on ultrawide monitors?
Elements anchored to the center or placed at fixed positions stay in the middle while the screen gets wider, or scale up and get cut off at the top and bottom. Anchor HUD elements to corners and edges.