RealDocs

UKismetStringLibrary::ParseIntoArray

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

Description

Splits SourceString into an array of substrings wherever Delimiter occurs, optionally culling empty entries produced by consecutive delimiters.

Caveats & Gotchas

  • Delimiter defaults to a single space; splitting on multiple different delimiters or a regex pattern isn't supported by this node.
  • CullEmptyStrings defaults to true, so consecutive delimiters collapse by default — set it to false if empty fields (e.g. from CSV-like data) must be preserved.

Signature

static TArray<FString> ParseIntoArray(const FString& SourceString, const FString& Delimiter = FString(TEXT(" ")), const bool CullEmptyStrings = true)

Parameters

Name Type Description Default
SourceString const FString& The string to split.
Delimiter const FString& The string to split on. FString(TEXT(" "))
CullEmptyStrings const bool Whether to cull empty strings produced by consecutive delimiters, rather than adding them to the array. true

Return Type

TArray<FString>

Example

Split a comma-separated tag list C++
TArray<FString> Tags = UKismetStringLibrary::ParseIntoArray(TagString, TEXT(","), true);

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.