UScrollBox
Inherits: UObjectBase › UObjectBaseUtility › UObject › UVisual › UWidget › UPanelWidget › UScrollBox
#include "Components/ScrollBox.h" Description
A scrollable container that stacks child widgets vertically (or horizontally) with an optional scrollbar. Suitable for 10–100 children; does not virtualize so all widgets are created and kept in memory.
Caveats & Gotchas
- • UScrollBox does not virtualize children — every child widget is created and retained in memory simultaneously. Use UListView or UTileView for large or data-driven lists.
- • ScrollToEnd() schedules the scroll for the next layout pass, not immediately. If you add children and scroll to end in the same frame, the scroll may not reflect the newly added items.
- • On gamepad, scrolling requires setting AnalogMouseWheelKey and ensuring bIsFocusable is true.
Example
Add an entry and scroll to bottom C++
MyScrollBox->AddChild(NewEntryWidget);
MyScrollBox->ScrollToEnd(); See Also
Version History
Introduced in: 4.5
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?