RealDocs

UKismetTextLibrary::TextTrimTrailing

function Engine Blueprint Since unknown
#include "Kismet/KismetTextLibrary.h"
Access: public Specifiers: staticBlueprintPure

Description

Removes trailing whitespace characters from the text.

Caveats & Gotchas

  • Only trailing whitespace is removed — leading whitespace is left untouched; use TextTrimPreceding or TextTrimPrecedingAndTrailing if you need both.
  • As with the other Text* transform functions, the underlying FText metadata is not preserved on the result — treat the output as a new, unlinked text value.

Signature

static FText TextTrimTrailing(const FText& InText)

Parameters

Name Type Description Default
InText const FText& The text to trim.

Return Type

FText

Example

Strip trailing spaces before comparison C++
FText RawInput = InputBox->GetText();
FText Trimmed = UKismetTextLibrary::TextTrimTrailing(RawInput);

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.