Navigation
API > API/Runtime > API/Runtime/UMG
A spacer widget; it does not have a visual representation, and just provides padding between other widgets.
- No Children
| Name | USpacer |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/Spacer.h |
| Include Path | #include "Components/Spacer.h" |
Syntax
UCLASS (MinimalAPI)
class USpacer : public UWidget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UVisual → UWidget → USpacer
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
USpacer
(
const FObjectInitializer& ObjectInitializer |
Components/Spacer.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Size | FVector2D | The size of the spacer | Components/Spacer.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FVector2D GetSize() |
Components/Spacer.h | ||
void SetSize
(
FVector2D InSize |
Sets the size of the spacer | Components/Spacer.h |
|
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FText GetPaletteCategory() |
Gets the palette category of the widget | Components/Spacer.h | |
virtual void SynchronizeProperties () |
Applies all properties to the native widget if possible. | Components/Spacer.h |
Overridden from UVisual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ReleaseSlateResources
(
bool bReleaseChildren |
Components/Spacer.h |
Protected
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedRef< SWidget > RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | Components/Spacer.h |