RealDocs

UKismetStringLibrary::BuildString_Vector2d

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

Description

Builds a new string in the form AppendTo+Prefix+InVector2d+Suffix, formatting an FVector2D with the standard ToString conversion between the given prefix and suffix.

Caveats & Gotchas

  • The vector always renders in the fixed 'X= Y=' layout from FVector2D::ToString; there's no parameter to control decimal precision.
  • AppendTo is read-only — like the other BuildString_ variants, the function returns a brand-new FString rather than appending onto the passed-in string.

Signature

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

Return Type

FString

Example

Log a UV coordinate with a label C++
FVector2D UV(0.5, 0.5);
FString UVText = UKismetStringLibrary::BuildString_Vector2d(TEXT(""), TEXT("UV "), UV, 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.