Wrap Box in Unreal Engine UI

Wrap Box in Unreal Engine UI

Quick guide to the Wrap Box panel in Unreal Engine. Learn wrapping, fill empty space, force new line, and padding for responsive UI layouts.

This is Rambod, and in this tutorial we’re breaking down the Wrap Box in Unreal Engine’s UMG system.
The Wrap Box is ideal for dynamic, responsive layouts where items automatically move to the next line when space runs out. Think inventories, icon grids, or achievement panels.

By the end, you’ll know how to:
✅ Add and configure a Wrap Box
✅ Duplicate widgets to test wrapping behavior
✅ Use Fill Empty Space for flexible layouts
✅ Use Force New Line to control row breaks
✅ Adjust Inner Slot Padding for cleaner spacing


1) Setting Up the Wrap Box

  1. Start with a Canvas Panel as the root.
  2. Drag a Wrap Box into the canvas.

Slot (Canvas Panel Slot) settings:

👉 This places the Wrap Box neatly centered on screen.


2) Adding and Duplicating Content

💡 To visualize wrapping clearly, give each image a different Color & Opacity (red, green, blue, purple, etc.). This way, you’ll see how the Wrap Box distributes them into rows.


3) How Wrapping Works

👉 This is why it’s perfect for dynamic item counts (inventories, icon bars, tag systems).


4) Using Fill Empty Space

Result:

💡 You can enable this on multiple widgets (e.g., the last item too) → they’ll share the remaining space.


5) Using Force New Line

Result:

👉 Great for grouping UI elements (e.g., separating sections in an inventory or breaking lines in chat bubbles).


6) Adding Inner Slot Padding

Result:


7) Practical Use Cases

The Wrap Box shines when you need flexible, auto-adjusting layouts:


Subtitle Expansion (Full Tutorial Flow)

“Start from a blank widget, add a Canvas Panel root, then drag in a Wrap Box. Anchor it center, size 500×100, alignment 0.5×0.5. Add one Image widget, then duplicate ~20 times with Ctrl + D. Give each image a different color for clarity. Watch: as the row fills, items wrap to the next line automatically. Select Image #14 → enable Fill Empty Space. It stretches to fill remaining row space. Do the same for the last image to see multiple items share leftover width. Enable Force New Line on one → it always starts a new row. Select the Wrap Box itself, set Inner Slot Padding = (2,2). The spacing between widgets is much cleaner now. Wrap Box is perfect for inventories, achievements, tags, or any responsive UI where the item count changes dynamically.”


Wrap-Up

The Wrap Box is a lightweight but powerful container for responsive UI layouts in Unreal Engine.

👉 Use it whenever you want grids or lists that adapt automatically to screen size and item count.


🎥 Watch the full tutorial: YouTube Link
🌐 More UI tutorials at rambod.net
📲 Subscribe to Rambod Dev for the Widget Blueprint Series.