unreal.CanvasPanelSlot
¶
- class unreal.CanvasPanelSlot(outer=None, name='None')¶
Bases:
unreal.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 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).
- get_layout() → AnchorData¶
Gets the layout data of the slot
- Returns
- 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
- Returns
- Return type
- get_z_order() → int32¶
Gets the z-order on the slot
- Returns
- Return type
int32
- property layout_data¶
[Read-Only] 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) –
- 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) –
- property z_order¶
[Read-Only] The order priority this widget is rendered in. Higher values are rendered last (and so they will appear to be on top).
- Type
(int32)