RealDocs

UKismetStringLibrary::BuildString_Int

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

Description

Builds a new string in the form AppendTo+Prefix+InInt+Suffix, formatting an integer and concatenating it between the given prefix and suffix.

Caveats & Gotchas

  • • AppendTo is not modified in place — despite the name suggesting an append operation, the function returns a brand-new FString and leaves the AppendTo argument untouched.
  • • There's no thousands separator or locale-aware formatting; large numbers print as plain digit strings (e.g. 1000000, not 1,000,000).

Signature

static FString BuildString_Int(const FString& AppendTo, const FString& Prefix, int32 InInt, const FString& Suffix)

Parameters

Name Type Description Default
AppendTo const FString& An existing string to use as the start of the result. —
Prefix const FString& A string inserted after AppendTo and before the formatted value. —
InInt int32 The integer value to format and insert. —
Suffix const FString& A string appended to the end of the result. —

Return Type

FString

Example

Build a labeled counter string C++
FString CounterText = UKismetStringLibrary::BuildString_Int(TEXT(""), TEXT("Kills: "), 7, TEXT(""));
// CounterText == "Kills: 7"

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.