void SAssetPicker::SetNewBackendFilter(const FARFilter& NewFilter) { CurrentSourcesData.PackagePaths = NewFilter.PackagePaths; AssetViewPtr->SetSourcesData(CurrentSourcesData); CurrentBackendFilter = NewFilter; CurrentBackendFilter.PackagePaths.Empty(); // Update the Text filter too, since now class names may no longer matter TextFilter->SetIncludeClassName(NewFilter.ClassNames.Num() != 1); OnFilterChanged(); }
void FLevelCollectionModel::RemoveFilter(const TSharedRef<LevelFilter>& InFilter) { Filters->Remove(InFilter); OnFilterChanged(); }
void FLevelCollectionModel::AddFilter(const TSharedRef<LevelFilter>& InFilter) { Filters->Add(InFilter); OnFilterChanged(); }