void FLightingBuildInfoStatsPage::Generate( TArray< TWeakObjectPtr<UObject> >& OutObjects ) const { if(Entries.Num()) { for( auto It = Entries.CreateConstIterator(); It; ++It ) { TWeakObjectPtr<ULightingBuildInfo> Entry = *It; if(Entry.IsValid()) { ULightingBuildInfo* NewObject = DuplicateObject<ULightingBuildInfo>(Entry.Get(), Entry->GetOuter()); NewObject->AddToRoot(); OutObjects.Add( NewObject ); } } } }