UProgressBar

The progress bar widget is a simple bar that fills up that can be restyled to fit any number of uses.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Components/ProgressBar.h

Include

#include "Components/ProgressBar.h"

Syntax

class UProgressBar : public UWidget

Remarks

The progress bar widget is a simple bar that fills up that can be restyled to fit any number of uses.

No Children

Variables

Name Description

Public variable

TEnumAsByte< EP...

 

BarFillStyle

Defines the visual style of the progress bar fill - scale or mask

Public variable

TEnumAsByte< EP...

 

BarFillType

Defines the direction in which the progress bar fills

Public variable

bool

 

bIsMarquee

Public variable

FVector2D

 

BorderPadding

Public variable

FLinearColor

 

FillColorAndOpacity

Fill Color and Opacity

Public variable

FGetLinearColor

 

FillColorAndOpacityDelegate

Protected variable

FSlateColor

 

K2_Cache_FillColorAndOpacity

Protected variable

TSharedPtr< SPr...

 

MyProgressBar

Native Slate Widget

Public variable

float

 

Percent

Used to determine the fill position of the progress bar ranging 0..1

Public variable

FGetFloat

 

PercentDelegate

A bindable delegate to allow logic to drive the text of the widget

Public variable

FProgressBarSty...

 

WidgetStyle

The progress bar style

Constructors

Name Description

Public function

UProgressBar

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Protected function

FSlateColor

 

K2_Gate_FillColorAndOpacity()

Public function

void

 

SetFillColorAndOpacity

(
    FLinearColor InColor
)

Sets the fill color of the progress bar.

Public function

void

 

SetIsMarquee

(
    bool InbIsMarquee
)

Sets the progress bar to show as a marquee.

Public function

void

 

SetPercent

(
    float InPercent
)

Sets the current value of the ProgressBar.

Overridden from UWidget

Name Description

Public function Virtual

const FText

 

GetPaletteCategory()

Gets the palette category of the widget

Public function Virtual

void

 

OnCreationFromPalette()

Called by the palette after constructing a new widget, allows the widget to perform interesting default setup that we don't want to be UObject Defaults.

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
)

Overridden from UObject

Name Description

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Deprecated Variables

Name Description

Public variable

TObjectPtr< USl...

 

BackgroundImage_DEPRECATED

The brush to use as the background of the progress bar

Public variable

TObjectPtr< USl...

 

FillImage_DEPRECATED

The brush to use as the fill image

Public variable

TObjectPtr< USl...

 

MarqueeImage_DEPRECATED

The brush to use as the marquee image

Public variable

TObjectPtr< USl...

 

Style_DEPRECATED

Style used for the progress bar