RealDocs

UKismetTextLibrary::TextTrimPreceding

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

Description

Removes whitespace characters from the front of the text.

Caveats & Gotchas

  • Only leading whitespace is removed — trailing whitespace is left untouched; use TextTrimTrailing or TextTrimPrecedingAndTrailing if you need both.
  • The underlying FText metadata (namespace/key) is not preserved on the result — treat the output as a new, unlinked text value.

Signature

static FText TextTrimPreceding(const FText& InText)

Parameters

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

Return Type

FText

Example

Clean up pasted input text C++
FText RawInput = InputBox->GetText();
FText Trimmed = UKismetTextLibrary::TextTrimPreceding(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.