/Engine/Source/Editor/PropertyEditor/Public/DetailLayoutBuilder.h
Gets the current set of existing category names. This includes both categories derived from properties and categories added via EditCategory.
void GetCategoryNames ( [TArray](API\Runtime\Core\Containers\TArray)< [FName](API\Runtime\Core\UObject\FName) > & OutCategoryNames ) const