FARFilter ARFilter;
ARFilter.bRecursiveClasses = true;
ARFilter.ClassNames.Add(UUserWidget::StaticClass()->GetFName());
int32 UINum = 0;
TSet<FAssetData> MySet;
IAssetRegistry::Get()->EnumerateAssets(ARFilter, [&](const FAssetData& AssetData)
{
MySet.Add(AssetData);
return true;
});
Try wth UWidgetBlueprint::StaticClass()