UCommonNumericTextBlock

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

CommonUI

Header

/Engine/Plugins/Experimental/CommonUI/Source/CommonUI/Public/CommonNumericTextBlock.h

Include

#include "CommonNumericTextBlock.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(BlueprintType)
class UCommonNumericTextBlock : public UCommonTextBlock

Variables

Name Description

Public variable UProperty Category, EditAnywhere BlueprintReadOnly

float

 

CurrentNumericValue

The current numeric value being formatted for display, potentially being interpolated from.

Public variable

float

 

DestinationValue

Public variable

float

 

Duration

Public variable UProperty Category, EditAnywhere, Meta BlueprintReadOnly

float

 

EaseOutInterpolationExponent

Exponent parameter for the "ease out" interpolation curve.

Public variable

float

 

ElapsedStateDuration

Public variable UProperty Category, EditAnywhere BlueprintReadOnly

FCommonNumberFo...

 

FormattingSpecification

The specifications for how the current numeric value should be formatted in to numeral text.

Public variable

bool

 

HasTriggeredOutro

Public variable

int32

 

InitialWidth

Public variable UProperty Category, EditAnywhere, Meta BlueprintReadOnly

float

 

InterpolationUpdateInterval

The desired interval, in seconds, between interpolation updates.

Public variable UProperty Category, EditAnywhere BlueprintReadOnly

ECommonNumericT...

 

NumericType

Public variable UProperty Category BlueprintAssignable

FOnInterpolatio...

 

OnInterpolationEndedEvent

Event triggered when interpolation has ended.

Public variable UProperty Category BlueprintAssignable

FOnInterpolatio...

 

OnInterpolationStartedEvent

Event triggered when interpolation has started.

Public variable UProperty Category BlueprintAssignable

FOnInterpolatio...

 

OnInterpolationUpdatedEvent

Event triggered when interpolation has updated.

Public variable UProperty Category BlueprintAssignable

FOnOutro

 

OnOutroEvent

Event triggered at a specified time before the interpolation completes, for "outro" purposes.

Public variable

float

 

OutroOffset

Public variable UProperty Category, EditAnywhere BlueprintReadOnly

bool

 

PerformSizeInterpolation

Public variable UProperty Category, EditAnywhere, Meta BlueprintReadOnly

float

 

PostInterpolationShrinkDuration

The desired width of the formatted text may change rapidly and erratically during interpolation due to font glyph dimensions.

Public variable

float

 

SourceValue

Constructors

Name Description

Public function

UCommonNumericTextBlock

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Protected function Virtual Const

FText

 

FormatText

(
    float InCurrentNumericValue,
    const FNumberFormattingOptions& In...
)

Public function Const UFunction BlueprintCallable, Category

float

 

GetTargetValue()

Returns the value this widget will ultimately show if it is interpolating, or the current value if it is not.

Public function UFunction BlueprintCallable, Category

void

 

InterpolateToValue

(
    const float TargetValue,
    float MaximumInterpolationDuration,
    float MinimumChangeRate,
    float OutroOffset
)

Starts an ongoing process of interpolating the current numeric value to the specified target value.

Public function Const UFunction BlueprintCallable, BlueprintPure, Category

bool

 

IsInterpolatingNumericValue()

Public function UFunction BlueprintCallable, Category

void

 

SetCurrentValue

(
    const float NewValue
)

Sets the current numeric value.

Public function UFunction BlueprintCallable, Category

void

 

SetNumericType

(
    ECommonNumericType InNumericType
)

Protected function

void

 

UpdateUnderlyingText()

Overridden from UWidget

Name Description

Public function Virtual

const FText

 

GetPaletteCategory()

Gets the palette category of the widget

Public function Virtual

void

 

SynchronizeProperties()

Applies all properties to the native widget if possible.

Overridden from UObject

Name Description

Public function Virtual Const

bool

 

CanEditChange

(
    const FProperty* InProperty
)

Called by the editor to query whether a property of this object is allowed to be modified.

Public function Virtual

void

 

PostLoad()

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

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Handles reading, writing, and reference collecting using FArchive.

Classes

Enums

Name

Description

Private enum

EInterpolationState

Enum for interpolation state machine.

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