USpacer

A spacer widget; it does not have a visual representation, and just provides padding between other widgets.

Windows
MacOS
Linux

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

Name Description

Protected variable

TSharedPtr< SSp...

 

MySpacer

Public variable

FVector2D

 

Size

The size of the spacer

Constructors

Name Description

Public function

USpacer

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

SetSize

(
    FVector2D InSize
)

Sets the size of the spacer

Overridden from UWidget

Name Description

Public function Virtual

const FText

 

GetPaletteCategory()

Gets the palette category of the widget

Protected function Virtual

TSharedRef< ...

 

RebuildWidget()

Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed.

Public function Virtual

void

 

SynchronizeProperties()

Applies all properties to the native widget if possible.

Overridden from UVisual

Name Description

Public function Virtual

void

 

ReleaseSlateResources

(
    bool bReleaseChildren
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss