unreal.CanvasPanelSlot

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

Bases: PanelSlot

Canvas Panel Slot

C++ Source:

  • Module: UMG

  • File: CanvasPanelSlot.h

Editor Properties: (see get_editor_property/set_editor_property)

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

  • layout_data (AnchorData): [Read-Write] The anchoring information for the slot

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

property auto_size: bool

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

Type:

(bool)

get_alignment() Vector2D

Gets the alignment on the slot

Return type:

Vector2D

get_anchors() Anchors

Gets the anchors on the slot

Return type:

Anchors

get_auto_size() bool

Gets if the slot to be auto-sized

Return type:

bool

get_layout() AnchorData

Gets the layout data of the slot

Return type:

AnchorData

get_offsets() Margin

Gets the offset data of the slot, which could be position and size, or margins depending on the anchor points

Return type:

Margin

get_position() Vector2D

Gets the position of the slot

Return type:

Vector2D

get_size() Vector2D

Gets the size of the slot

Return type:

Vector2D

get_z_order() int32

Gets the z-order on the slot

Return type:

int32

property layout_data: AnchorData

[Read-Write] The anchoring information for the slot

Type:

(AnchorData)

set_alignment(alignment) None

Sets the alignment on the slot

Parameters:

alignment (Vector2D) –

set_anchors(anchors) None

Sets the anchors on the slot

Parameters:

anchors (Anchors) –

set_auto_size(inb_auto_size) None

Sets if the slot to be auto-sized

Parameters:

inb_auto_size (bool) –

set_layout(layout_data) None

Sets the layout data of the slot

Parameters:

layout_data (AnchorData) –

set_offsets(offset) None

Sets the offset data of the slot, which could be position and size, or margins depending on the anchor points

Parameters:

offset (Margin) –

set_position(position) None

Sets the position of the slot

Parameters:

position (Vector2D) –

set_size(size) None

Sets the size of the slot

Parameters:

size (Vector2D) –

set_z_order(z_order) None

Sets the z-order on the slot

Parameters:

z_order (int32) –

property z_order: int

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

Type:

(int32)