Function
Moderate
Widget:SetSlotSize
Sets the slot size and size rule.<br/><br/>Note: This method only works if this Widget is child of one of: HorizontalBoxSlot, VerticalBoxSlot, ScrollBoxSlot.
Syntax
my_widget:SetSlotSize(size = 0.0, slate_size_rule = WidgetSizeRule.Automatic)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
size
optional
|
float | 0.0 |
Size value for the slot |
slate_size_rule
optional
|
WidgetSizeRule | WidgetSizeRule.Automatic |
Size rule for the slot |