UKismetStringLibrary::BuildString_IntVector
#include "Kismet/KismetStringLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Builds a new string in the form AppendTo+Prefix+InIntVector+Suffix, formatting an FIntVector with the standard ToString conversion between the given prefix and suffix.
Caveats & Gotchas
- • The header parameter is misleadingly named InIntVector2 even though its type is FIntVector, not FIntVector2 — a copy-paste artifact in the engine source, not a hint that this takes a 2D value.
- • AppendTo is read-only; the function always allocates and returns a new FString rather than modifying AppendTo in place.
Signature
static FString BuildString_IntVector(const FString& AppendTo, const FString& Prefix, FIntVector InIntVector2, 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. | — |
| InIntVector2 | FIntVector | The integer vector value to format and insert, using FIntVector::ToString. | — |
| Suffix | const FString& | A string appended to the end of the result. | — |
Return Type
FString Example
Log a chunk coordinate C++
FIntVector ChunkCoord(4, -2, 0);
FString ChunkText = UKismetStringLibrary::BuildString_IntVector(TEXT(""), TEXT("Chunk "), ChunkCoord, TEXT("")); Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?