Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UTextBlock
Description
Directly sets the widget text. Warning: This will wipe any binding created for the Text property!
| Name | SetText |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/TextBlock.h |
| Include Path | #include "Components/TextBlock.h" |
| Source | /Engine/Source/Runtime/UMG/Private/Components/TextBlock.cpp |
UFUNCTION (BlueprintCallable, Category="Widget", Meta=(DisplayName="SetText (Text)"))
virtual void SetText
(
FText InText
)
Parameters
| Name | Remarks |
|---|---|
| InText | The text to assign to the widget |