unreal.WrapBoxSlot

class unreal.WrapBoxSlot(outer: Object | None = None, name: Name | str = 'None')

Bases: PanelSlot

The Slot for the UWrapBox, contains the widget that is flowed vertically

C++ Source:

  • Module: UMG

  • File: WrapBoxSlot.h

Editor Properties: (see get_editor_property/set_editor_property)

  • fill_empty_space (bool): [Read-Write] Should this slot fill the remaining space on the line?

  • fill_span_when_less_than (float): [Read-Write] If the total available space in the wrap panel drops below this threshold, this slot will attempt to fill an entire line. NOTE: A value of 0, denotes no filling will occur.

  • force_new_line (bool): [Read-Write] Should this slot start on a new line?

  • horizontal_alignment (HorizontalAlignment): [Read-Write] The alignment of the object horizontally.

  • padding (Margin): [Read-Write] The padding area between the slot and the content it contains.

  • vertical_alignment (VerticalAlignment): [Read-Write] The alignment of the object vertically.

property fill_empty_space: bool

[Read-Write] Should this slot fill the remaining space on the line?

Type:

(bool)

property fill_span_when_less_than: float

[Read-Write] If the total available space in the wrap panel drops below this threshold, this slot will attempt to fill an entire line. NOTE: A value of 0, denotes no filling will occur.

Type:

(float)

property force_new_line: bool

[Read-Write] Should this slot start on a new line?

Type:

(bool)

property horizontal_alignment: HorizontalAlignment

[Read-Write] The alignment of the object horizontally.

Type:

(HorizontalAlignment)

property padding: Margin

[Read-Write] The padding area between the slot and the content it contains.

Type:

(Margin)

set_fill_empty_space(inb_fill_empty_space) None

Set Fill Empty Space

Parameters:

inb_fill_empty_space (bool) –

set_fill_span_when_less_than(fill_span_when_less_than) None

Set Fill Span when Less Than

Parameters:

fill_span_when_less_than (float) –

set_horizontal_alignment(horizontal_alignment) None

Set Horizontal Alignment

Parameters:

horizontal_alignment (HorizontalAlignment) –

set_new_line(force_new_line) None

Set New Line

Parameters:

force_new_line (bool) –

set_padding(padding) None

Set Padding

Parameters:

padding (Margin) –

set_vertical_alignment(vertical_alignment) None

Set Vertical Alignment

Parameters:

vertical_alignment (VerticalAlignment) –

property vertical_alignment: VerticalAlignment

[Read-Write] The alignment of the object vertically.

Type:

(VerticalAlignment)