Overlay in Unreal Engine UI – Build Layered Widget Cards

Overlay in Unreal Engine UI – Build Layered Widget Cards

Learn how to design layered, responsive UI cards with Unreal Engine’s Overlay panel. Master anchors, alignment, padding, and stacking order for clean layouts.

This is Rambod, and in this tutorial we’re breaking down the Overlay widget in Unreal Engine’s UMG system.
Overlay is one of the most flexible layout containers because it allows you to stack widgets on top of each other like a layered card system. This makes it perfect for HUDs, menus, popups, and modular UI components.

By the end of this guide, you’ll know how to:
✅ Center an Overlay in the viewport
✅ Add background and card layers using images
✅ Apply padding for layered styling
✅ Place text in the middle and bottom of the card
✅ Understand how stacking order works in Overlay


1) Adding the Overlay to a Canvas Panel

Configure Overlay position:

👉 Now the Overlay is perfectly centered in the screen with a fixed size card space.


2) Adding Background and Card Images

Background Image

This makes the image stretch across the entire Overlay. Keep its color white — it will act as the background.

Card Image

👉 This creates an inset rectangle effect, great for card-style panels.

At this stage, you have a layered card background: one solid base, one colored inner panel.


3) Adding Text Layers

Centered Text

This positions the text right in the middle of the card.

Bottom-Aligned Text

Now you have two text elements:

💡 You can change the alignment of any Overlay child individually, giving full control for flexible layouts.


4) Understanding Stacking Order in Overlay

Here’s a critical detail:

👉 The top item in the hierarchy is drawn first (behind others).
👉 Items below it are layered on top.

For example:

This means you manage the visual order simply by reordering the hierarchy in the Designer.


5) Recap of Key Concepts

💡 Overlay is lightweight and powerful — great for building HUD cards, popups, tooltips, or layered menu elements.


Subtitle Expansion (Full Tutorial Flow)

“Start with a Canvas Panel, drag in an Overlay, center it on screen with anchor middle, position 0,0, size 450×250, alignment 0.5×0.5. Add a background Image set to Fill. Add a second Image, also Fill, with 10 padding, set color to red with transparency. Add first Text Block aligned center-center. Add second Text Block aligned center-bottom. Note that Overlay stacking is based on hierarchy order: first item is drawn behind, later items appear in front. This makes it simple to layer cards and UI elements without Z-Order numbers. Overlay is clean, flexible, and ideal for HUDs, menus, or popups.”


Wrap-Up

The Overlay widget is a core tool in UMG for layered UI design. With it, you can quickly:

👉 Watch the full tutorial here: YouTube Link
👉 More UI guides at rambod.net
👉 Subscribe to Rambod Dev for the complete Widget Blueprint Series.