unreal.CanvasPanelSlot¶
- class unreal.CanvasPanelSlot(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
PanelSlotCanvas 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 sizelayout_data(AnchorData): [Read-Write] The anchoring information for the slotz_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_layout() AnchorData¶
Gets the layout data of the slot
- Return type:
- 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:
- 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:
- 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)