UTextRenderComponent::SetText

Change the text value and signal the primitives to be rebuilt The [FString](API\Runtime\Core\Containers\FString) variant is deprecated in favor of the [FText](API\Runtime\Core\Internationalization\FText) variant

Windows
MacOS
Linux

Deprecated

  • Passing text as FString is deprecated, please use FText instead (likely via a LOCTEXT).

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/TextRenderComponent.h

Include

#include "Components/TextRenderComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/TextRenderComponent.cpp

Syntax

void SetText
(
    const FString & Value
)

Remarks

Change the text value and signal the primitives to be rebuilt The FString variant is deprecated in favor of the FText variant

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