Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/SHorizontalBox > API/Runtime/SlateCore/SHorizontalBox/FSlot
Description
The widget's content size is adjusted proportionally to fit the available space. The slots size starts at DesiredSize, and a slot with coefficient of 2 will get adjusted twice as much as slot with coefficient 1 to fit the available space.
| Name | SetFillContentWidth |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Widgets/SBoxPanel.h |
| Include Path | #include "Widgets/SBoxPanel.h" |
void SetFillContentWidth
(
TAttribute < float > InStretchCoefficient,
TAttribute < float > InShrinkStretchCoefficient
)
Parameters
| Name | Remarks |
|---|---|
| InStretchCoefficient | Stretch coefficient for this slot. |
| InShrinkStretchCoefficient | If specified, this stretch coefficient is used when the slots is shrinking below desired size. Otherwise InStretchCoefficient is used for both shrink and grow. |