unreal.UIFrameworkCanvasBoxSlot

class unreal.UIFrameworkCanvasBoxSlot(widget: UIFrameworkWidget = Ellipsis, anchors: Anchors = Ellipsis, offsets: Margin = Ellipsis, alignment: Vector2D = Ellipsis, z_order: int = 0, size_to_content: bool = False)

Bases: UIFrameworkSlotBase

UIFramework Canvas Box Slot

C++ Source:

  • Plugin: UIFramework

  • Module: UIFramework

  • File: UIFCanvasBox.h

Editor Properties: (see get_editor_property/set_editor_property)

  • alignment (Vector2D): [Read-Write] Alignment is the pivot point of the widget. Starting in the upper left at (0,0), ending in the lower right at (1,1). Moving the alignment point allows you to move the origin of the widget.

  • anchors (Anchors): [Read-Write] Anchors.

  • offsets (Margin): [Read-Write] Offset.

  • size_to_content (bool): [Read-Write] When true we use the widget’s desired size

  • widget (UIFrameworkWidget): [Read-Write]

  • z_order (int32): [Read-Write] The order priority this widget is rendered inside the layer. Higher values are rendered last (and so they will appear to be on top).

property alignment: Vector2D

[Read-Write] Alignment is the pivot point of the widget. Starting in the upper left at (0,0), ending in the lower right at (1,1). Moving the alignment point allows you to move the origin of the widget.

Type:

(Vector2D)

property anchors: Anchors

[Read-Write] Anchors.

Type:

(Anchors)

property offsets: Margin

[Read-Write] Offset.

Type:

(Margin)

property size_to_content: bool

[Read-Write] When true we use the widget’s desired size

Type:

(bool)

property z_order: int

[Read-Write] The order priority this widget is rendered inside the layer. Higher values are rendered last (and so they will appear to be on top).

Type:

(int32)