UKismetStringLibrary::BuildString_Name
#include "Kismet/KismetStringLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Builds a new string in the form AppendTo+Prefix+InName+Suffix, inserting the name's string representation between the prefix and suffix.
Caveats & Gotchas
- • FName comparisons are case-insensitive internally, but the ToString() used here preserves the original casing the FName was created with.
- • Converting an FName to FString allocates memory on every call; avoid doing this every tick for names that don't change.
Signature
static FString BuildString_Name(const FString& AppendTo, const FString& Prefix, FName InName, 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. | — |
| InName | FName | The name value to convert and insert. | — |
| Suffix | const FString& | A string appended to the end of the result. | — |
Return Type
FString Example
Log a socket name C++
FString SocketText = UKismetStringLibrary::BuildString_Name(TEXT(""), TEXT("Socket: "), SocketName, TEXT("")); Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?