FAssetFilter

A filter used by [SFilterBar](API\Editor\EditorWidgets\Filters\SFilterBar) that wraps all the back-end filters into one [FFilterBase](API\Developer\ToolWidgets\Filters\FFilterBase) for convenience

Unreal Engine C++ API Reference > Editor > EditorWidgets > Filters

Inheritance Hierarchy

References

   
Module EditorWidgets
Header /Engine/Source/Editor/EditorWidgets/Public/Filters/AssetFilter.h
Include #include "Filters/AssetFilter.h"

Syntax

template<typename FilterType>  
class FAssetFilter : public [FFilterBase< FilterType >](API\Developer\ToolWidgets\Filters\FFilterBase)  

Remarks

A filter used by SFilterBar that wraps all the back-end filters into one FFilterBase for convenience

Variables

Type Name Description
FARCompiledFilt... CompiledBackendFilter The compiled BackendFilter that contains all the Asset Filters attached to this Filter
FCompareItemWit... OnCompareItem Delegate used to compare an item to a UClass represented by an FName
FConvertItemToA... OnConvertItem Delegate used to convert an item to an FAssetData

Constructors

Type Name Description
  FAssetFilter ()  

Functions

Type Name Description
void SetBackendFilter ( const FARFilter& InBackendFilter )  
void SetComparisonFunction ( FCompareItemWithClassNames InOnComp... )  
void SetConversionFunction ( FConvertItemToAssetData InOnConvert... )  

Overridden from FFilterBase

Type Name Description
void ActiveStateChanged ( bool bActive ) Notification that the filter became active or inactive
FLinearColor GetColor () Returns the color this filter button will be when displayed as a button
FText GetDisplayName () Returns the human readable name for this filter
FName GetIconName () Returns the name of the icon to use in menu entries
FText GetToolTipText () Returns the tooltip for this filter, shown in the filters menu
bool IsInverseFilter () Returns true if the filter should be in the list when disabled and not in the list when enabled
void LoadSettings ( const FString& IniFilename, const FString& IniSection, const FString& SettingsString ) Can be overriden for custom FilterBar subclasses to load settings, currently not implemented in any gneeric Filter Bar
void ModifyContextMenu ( FMenuBuilder& MenuBuilder ) Called when the right-click context menu is being built for this filter
void SaveSettings ( const FString& IniFilename, const FString& IniSection, const FString& SettingsString ) Can be overriden for custom FilterBar subclasses to save settings, currently not implemented in any gneeric Filter Bar

Overridden from IFilter

Type Name Description
FString GetName () Returns the system name for this filter
bool PassesFilter ( FilterType InItem ) Returns whether the specified Item passes the Filter's restrictions

Typedefs

Name Description
FCompareItemWithClassNames A delegate that the user can use to specify how to compare their Filter Item to a list of Asset Types represented as FNames
FConvertItemToAssetData A delegate that the user can use to specify how to convert their Filter Item into an FAssetData

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library