unreal.ScaleBoxComponent

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

Bases: UIComponent

This is a class for a Component that wraps the Owner widget with a Scale Box

C++ Source:

  • Module: UMG

  • File: ScaleBoxComponent.h

Editor Properties: (see get_editor_property/set_editor_property)

  • horizontal_alignment (HorizontalAlignment): [Read-Write] This property is for the Widget that owns this Component. The alignment of the object horizontally.

  • ignore_inherited_scale (bool): [Read-Write] Optional bool to ignore the inherited scale. Applies inverse scaling to counteract parents before applying the local scale operation.

  • stretch (Stretch): [Read-Write] The stretching rule to apply when content is stretched

  • stretch_direction (StretchDirection): [Read-Write] Controls in what direction content can be scaled

  • user_specified_scale (float): [Read-Write] Optional scale that can be specified by the User. Used only for UserSpecified stretching.

  • vertical_alignment (VerticalAlignment): [Read-Write] This property is for the Widget that owns this Component. The alignment of the object vertically.

property horizontal_alignment: HorizontalAlignment

[Read-Write] This property is for the Widget that owns this Component. The alignment of the object horizontally.

Type:

(HorizontalAlignment)

property ignore_inherited_scale: bool

[Read-Write] Optional bool to ignore the inherited scale. Applies inverse scaling to counteract parents before applying the local scale operation.

Type:

(bool)

property stretch: Stretch

[Read-Write] The stretching rule to apply when content is stretched

Type:

(Stretch)

property stretch_direction: StretchDirection

[Read-Write] Controls in what direction content can be scaled

Type:

(StretchDirection)

property user_specified_scale: float

[Read-Write] Optional scale that can be specified by the User. Used only for UserSpecified stretching.

Type:

(float)

property vertical_alignment: VerticalAlignment

[Read-Write] This property is for the Widget that owns this Component. The alignment of the object vertically.

Type:

(VerticalAlignment)