Navigation
API > API/Plugins > API/Plugins/CommonUI
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVisual
- UWidget
- UTextLayoutWidget
- UTextBlock
- UCommonTextBlock
- UCommonNumericTextBlock
References
| Module | CommonUI |
| Header | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonNumericTextBlock.h |
| Include | #include "CommonNumericTextBlock.h" |
Syntax
UCLASS&40;BlueprintType&41;
class UCommonNumericTextBlock : public UCommonTextBlock
Remarks
Numeric text block that provides interpolation, and some type support (numbers, percents, seconds, distance).
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | CurrentNumericValue | The current numeric value being formatted for display, potentially being interpolated from. NOTE: The displayed text is very likely not identical to this value, due to formatting. | |
| float | DestinationValue | ||
| float | Duration | ||
| float | EaseOutInterpolationExponent | Exponent parameter for the "ease out" interpolation curve. | |
| float | ElapsedStateDuration | ||
| FCommonNumberFormattingOptions | FormattingSpecification | The specifications for how the current numeric value should be formatted in to numeral text. | |
| bool | HasTriggeredOutro | ||
| int32 | InitialWidth | ||
| float | InterpolationUpdateInterval | The desired interval, in seconds, between interpolation updates. | |
| ECommonNumericType | NumericType | ||
| FOnInterpolationEnded | OnInterpolationEndedEvent | Event triggered when interpolation has ended. | |
| FOnInterpolationStarted | OnInterpolationStartedEvent | Event triggered when interpolation has started. | |
| FOnInterpolationUpdated | OnInterpolationUpdatedEvent | Event triggered when interpolation has updated. | |
| FOnOutro | OnOutroEvent | Event triggered at a specified time before the interpolation completes, for "outro" purposes. | |
| float | OutroOffset | ||
| bool | PerformSizeInterpolation | ||
| float | PostInterpolationShrinkDuration | The desired width of the formatted text may change rapidly and erratically during interpolation due to font glyph dimensions. | |
| float | SourceValue |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UCommonNumericTextBlock
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FText | FormatText
(
float InCurrentNumericValue, |
||
| float | Returns the value this widget will ultimately show if it is interpolating, or the current value if it is not. | ||
| void | InterpolateToValue
(
const float TargetValue, |
Starts an ongoing process of interpolating the current numeric value to the specified target value. | |
| bool | |||
| void | SetCurrentValue
(
const float NewValue |
Sets the current numeric value. NOTE: Cancels any ongoing interpolation! | |
| void | SetNumericType
(
ECommonNumericType InNumericType |
||
| void |
Overridden from UWidget
| Type | Name | Description | |
|---|---|---|---|
| const FText | Gets the palette category of the widget | ||
| void | Applies all properties to the native widget if possible. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| bool | CanEditChange
(
const FProperty* InProperty |
Called by the editor to query whether a property of this object is allowed to be modified. | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | Handles reading, writing, and reference collecting using FArchive. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FOnInterpolationEnded | |||
| FOnInterpolationStarted | |||
| FOnInterpolationUpdated | |||
| FOnOutro |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EInterpolationState | Enum for interpolation state machine. |