benui-dev/benui-site

UCLASS Display meta specifier incorrectly lists PrioritizeCategories param type as comma-separated category names

Closed this issue · 1 comments

On the PrioritizeCategories section of the UCLASS Metaspecifiers page, the "type" that this param is listed as accepting is "string (comma-separated category names)", but looking at the Unreal code it's split on spaces not commas.

\UE5\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp (line 6165 - 6172)

void UClass::GetPrioritizeCategories(TArray<FString>& OutPrioritizedCategories) const
{
	static const FName NAME_PrioritizeCategories(TEXT("PrioritizeCategories"));
	if (const FString* PrioritizeCategories = FindMetaData(NAME_PrioritizeCategories))
	{
		PrioritizeCategories->ParseIntoArray(OutPrioritizedCategories, TEXT(" "), true);
	}
}

Fixed! Thank you so much!