Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Widgets > API/Runtime/SlateCore/Widgets/SBoxPanel > API/Runtime/SlateCore/Widgets/SBoxPanel/TSlot
References
Module | SlateCore |
Header | /Engine/Source/Runtime/SlateCore/Public/Widgets/SBoxPanel.h |
Include | #include "Widgets/SBoxPanel.h" |
void SetSizeToStretchContent
(
TAttribute < float > InStretchCoefficient,
TAttribute < float > InShrinkStretchCoefficient
)
Remarks
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.
Parameters
Name | Description |
---|---|
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. |