RealDocs

UKismetStringLibrary::BuildString_Vector

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

Description

Builds a new string in the form AppendTo+Prefix+InVector+Suffix, formatting the vector with the standard FVector::ToString conversion between the given prefix and suffix.

Caveats & Gotchas

  • The vector always renders in the fixed 'X= Y= Z=' layout from FVector::ToString; there's no way to customize decimal precision or omit axes through this node.
  • InVector is passed by value rather than by reference, which is negligible for typical Blueprint usage but worth noting if wiring this from very hot native code.

Signature

static FString BuildString_Vector(const FString& AppendTo, const FString& Prefix, FVector InVector, 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.
InVector FVector The vector value to format and insert, using FVector::ToString.
Suffix const FString& A string appended to the end of the result.

Return Type

FString

Example

Log an actor's location with a label C++
FString LocationText = UKismetStringLibrary::BuildString_Vector(TEXT(""), TEXT("Spawned at "), GetActorLocation(), TEXT(""));

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.