Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Components/ScaleBox.h |
Include |
#include "Components/ScaleBox.h" |
class UScaleBox : public UContentWidget
Allows you to place content with a desired size and have it scale to meet the constraints placed on this box's alloted area. If you needed to have a background image scale to fill an area but not become distorted with different aspect ratios, or if you need to auto fit some text to an area, this is the control for you.
Single Child Aspect Ratio
Name | Description | ||
---|---|---|---|
|
DesignerSize |
||
|
IgnoreInheritedScale |
Optional bool to ignore the inherited scale. |
|
|
TSharedPtr< SSc... |
MyScaleBox |
|
|
TEnumAsByte< ES... |
Stretch |
The stretching rule to apply when content is stretched |
|
TEnumAsByte< ES... |
StretchDirection |
Controls in what direction content can be scaled |
|
float |
UserSpecifiedScale |
Optional scale that can be specified by the User. Used only for UserSpecified stretching. |
Name | Description | |
---|---|---|
|
UScaleBox ( |
Name | Description | ||
---|---|---|---|
|
SetIgnoreInheritedScale ( |
||
|
SetStretch ( |
||
|
SetStretchDirection ( |
||
|
SetUserSpecifiedScale ( |
Name | Description | ||
---|---|---|---|
|
UClass * |
GetSlotClass() |
|
|
OnSlotAdded ( |
||
|
OnSlotRemoved ( |
Name | Description | ||
---|---|---|---|
|
const FText |
GetPaletteCategory() |
Gets the palette category of the widget |
|
OnDesignerChanged ( |
||
|
TSharedRef< ... |
RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. |
|
SynchronizeProperties() |
Applies all properties to the native widget if possible. |
Name | Description | ||
---|---|---|---|
|
ReleaseSlateResources ( |