Navigation
API > API/Plugins > API/Plugins/CommonUI
Inheritance Hierarchy
- UTextBlock
- UCommonTextBlock
- UCommonDateTimeTextBlock
References
| Module | CommonUI |
| Header | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonDateTimeTextBlock.h |
| Include | #include "CommonDateTimeTextBlock.h" |
Syntax
UCLASS (BlueprintType)
class UCommonDateTimeTextBlock : public UCommonTextBlock
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bCustomTimespanLeadingZeros | If the custom timespan should use a leading zero for values, ie "02" | |
| FText | CustomTimespanFormat | Supplies a custom timespan format to use if desired Supported arguments include {Days}, {Hours}, {Minutes}, and {Seconds} |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UCommonDateTimeTextBlock
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TOptional< FText > | FormatDateTime
(
const FDateTime& InDateTime |
||
| TOptional< FText > | FormatTimespan
(
const FTimespan& InTimespan |
||
| FDateTime | GetDateTime () |
||
| int32 | |||
| int32 | |||
| const FText | |||
| FOnTimeCountDownCompletion & | |||
| void | SetCountDownCompletionText
(
const FText InCompletionText |
||
| void | SetDateTimeValue
(
const FDateTime InDateTime, |
||
| void | SetTimespanValue
(
const FTimespan InTimespan |
||
| bool | ShouldClearTimer
(
const FTimespan& TimeRemaining |
||
| void |
Overridden from UCommonTextBlock
| Type | Name | Description | |
|---|---|---|---|
| void |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FOnTimeCountDownCompletion |