RealDocs

UKismetStringLibrary::CullArray

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

Description

Removes zero-length entries from an array of strings in place and returns the resulting element count.

Caveats & Gotchas

  • InArray is a non-const reference and is modified directly — pass a copy if you need to keep the original array with empty entries intact.
  • The SourceString parameter isn't actually used by the culling logic; it exists only because of the function's Blueprint node signature.

Signature

static int32 CullArray(const FString& SourceString, TArray<FString>& InArray)

Parameters

Name Type Description Default
SourceString const FString& Unused input string parameter carried over from the node's original signature.
InArray TArray<FString>& The array to remove zero-length entries from, modified in place.

Return Type

int32

Example

Remove empty entries after ParseIntoArray C++
TArray<FString> Tokens = UKismetStringLibrary::ParseIntoArray(Input, TEXT(","), false);
const int32 Remaining = UKismetStringLibrary::CullArray(Input, Tokens);

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.