Description

FString::CullArray is a static function, but the BP version is still taking a string instance to operate on (which it won't mutate as the function is static), and takes the array as an in/out argument (which doesn't really work with BPs).

The BP exposed function should probably be changed to take an array, internally make a copy, call FString::CullArray on the copy, and then return the result.

Something like this:

TArray<FString> UKismetStringLibrary::CullArray(const TArray<FString>& InArray)
{
	TArray<FString> CulledArray = InArray;
	FString::CullArray(&CulledArray);
	return CulledArray;
}
Steps to Reproduce
  1. Create a "Cull Array" node in a BP

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Won't Fix
CreatedMay 18, 2017
ResolvedAug 18, 2021
UpdatedAug 18, 2021
View Jira Issue