DreamGUI
Reference

UDreamLayoutContainerWrapBox

UMG Wrap Box

Inherits from UDreamPanelLayoutBase.

Declared in Public/Core/Components/DreamPanelLayouts.h.

UMG Wrap Box

Properties

NameTypeCategoryIn the details panelFrom BlueprintDescription
PaddingFMarginWrapBoxyesSetPadding
SpacingFVector2DWrapBoxyesSetSpacing
WrapSizefloatWrapBoxyesSetWrapSize
bExplicitWrapSizeboolWrapBoxyesSetExplicitWrapSize
OrientationEDreamPanelOrientationWrapBoxyesSetOrientationWhich way the lines run. Horizontal fills a row and wraps downwards -- the classic wrap box, and what this panel has always done; Vertical fills a column and wraps to the right.
HorizontalAlignmentEDreamPanelHorizontalAlignmentWrapBoxyesSetHorizontalAlignmentWhere a line that did not fill the wrap width sits inside it. UMG enables this for a horizontal box only, and so does this: in a vertical box the lines are columns and there is no horizontal line length for the value to describe.

Functions

FunctionKindDescription
FVector2D GetInnerSlotPadding()pureUMG's UWrapBox::InnerSlotPadding, which is this panel's Spacing: the gap it leaves between slots.
void SetExplicitWrapSize(bool Value)callableSet Explicit Wrap Size
void SetHorizontalAlignment(EDreamPanelHorizontalAlignment Value)callableSet Horizontal Alignment
void SetInnerSlotPadding(FVector2D InPadding)callableSet Inner Slot Padding
void SetOrientation(EDreamPanelOrientation Value)callableSet Orientation
void SetPadding(FMargin Value)callableSet Padding
void SetSpacing(FVector2D Value)callableSet Spacing
void SetWrapSize(float Value)callableSet Wrap Size

Compared with UMG

Every Blueprint-facing member of the UMG class, and where it went. adopt: same name, same meaning. map: here under another name or on another type. reject: deliberately absent, with the reason.

UMGMemberStatusHereNote
UWrapBoxInnerSlotPaddingmapSpacingThe same two gaps under the name the rest of this plugin's panels already use: x along a line, y between lines. GetInnerSlotPadding/SetInnerSlotPadding exist under UMG's name and forward.
UWrapBoxWrapSizeadoptWrapSizeThe length of a line whichever way the lines run, so it keeps its meaning in a vertical box.
UWrapBoxbExplicitWrapSizeadoptbExplicitWrapSize
UWrapBoxHorizontalAlignmentadoptHorizontalAlignmentWhere a line that did not fill the wrap length sits inside it, for a horizontal box only -- UMG's own EditCondition. Fill stretches every slot of a line by one factor, SWrapBox's HAlign_Fill: (allotted width - gaps) / (line length - gaps), so the line spans the box and the gaps stay as they are. The target is the box's own width less its padding, not WrapSize, because Slate's is the allotted geometry; what the box measures does not change.
UWrapBoxOrientationadoptOrientationEDreamPanelOrientation rather than Slate's EOrientation. Measure and arrange are both written along the line and across it, so the two orientations are one algorithm.
UWrapBoxSetInnerSlotPaddingadoptSetInnerSlotPaddingForwards to SetSpacing.
UWrapBoxSetHorizontalAlignmentadoptSetHorizontalAlignment
UWrapBoxAddChildToWrapBoxmapAddChildOne slot class here means one verb; AddChild returns the slot.

On this page