unreal.CanvasPanelSlot
¶
- class unreal.CanvasPanelSlot(outer: Optional[Object] = None, name: Union[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] Auto Sizelayout_data
(AnchorData): [Read-Write] Layout Dataz_order
(int32): [Read-Write] ZOrder
- 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] Layout Data
- 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) –