Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components
Inheritance Hierarchy
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Components/Spacer.h |
| Include | #include "Components/Spacer.h" |
Syntax
class USpacer : public UWidget
Remarks
A spacer widget; it does not have a visual representation, and just provides padding between other widgets.
- No Children
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< SSpacer > | MySpacer |
Constructors
| Type | Name | Description | |
|---|---|---|---|
USpacer
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | GetSize () |
||
| void | SetSize
(
FVector2D InSize |
Sets the size of the spacer |
Overridden from UWidget
| Type | Name | Description | |
|---|---|---|---|
| const FText | Gets the palette category of the widget | ||
| TSharedRef< SWidget > | Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | ||
| void | Applies all properties to the native widget if possible. |
Overridden from UVisual
| Type | Name | Description | |
|---|---|---|---|
| void | ReleaseSlateResources
(
bool bReleaseChildren |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | Size | Direct access to Size is deprecated. Please use the getter or setter. |