unreal.ScaleBoxSlot

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

Bases: PanelSlot

The Slot for the UScaleBoxSlot, contains the widget displayed in a button’s single slot

C++ Source:

  • Module: UMG

  • File: ScaleBoxSlot.h

Editor Properties: (see get_editor_property/set_editor_property)

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

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

property horizontal_alignment: HorizontalAlignment

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

Type:

(HorizontalAlignment)

set_horizontal_alignment(horizontal_alignment) None

Set Horizontal Alignment

Parameters:

horizontal_alignment (HorizontalAlignment) –

set_padding(padding) None

Set Padding deprecated: Function ‘SetPadding’ is deprecated.

Parameters:

padding (Margin) –

set_vertical_alignment(vertical_alignment) None

Set Vertical Alignment

Parameters:

vertical_alignment (VerticalAlignment) –

property vertical_alignment: VerticalAlignment

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

Type:

(VerticalAlignment)