Navigation
API > API/Editor > API/Editor/EditorWidgets
Helper Class that can be used to provide custom class filters to the Filter Widget Using this for Type Filters ensures that the type filters get OR'd together For example: filtering for StaticMeshActor and DirectionalLight will show assets that belong to either of those types.
| Name | FCustomClassFilterData |
| Type | class |
| Header File | /Engine/Source/Editor/EditorWidgets/Public/Filters/CustomClassFilterData.h |
| Include Path | #include "Filters/CustomClassFilterData.h" |
Syntax
class FCustomClassFilterData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCustomClassFilterData
(
UAssetDefinition* InAssetDefinition, |
You can provide an IAssetTypeActions for your type to get all the information from that | Filters/CustomClassFilterData.h | |
FCustomClassFilterData
(
UClass* InClass, |
Or you can provide a UClass, a Category and a Color to identify the filter | Filters/CustomClassFilterData.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AssetDefinitionPtr | TWeakObjectPtr< UAssetDefinition > | An optional AssetDefinition to get information about the filter class | Filters/CustomClassFilterData.h | |
| Categories | TArray< TSharedPtr< FFilterCategory > > | The Categories the filter will show up under | Filters/CustomClassFilterData.h | |
| Class | TWeakObjectPtr< UClass > | The Class the filter is associated with (if it does not have an AssetTypeAction) | Filters/CustomClassFilterData.h | |
| ClassPathName | FTopLevelAssetPath | The class path of the class associated with the filter | Filters/CustomClassFilterData.h | |
| Color | FLinearColor | The Color of the filter (if it does not have an AssetTypeAction to get the color from) | Filters/CustomClassFilterData.h | |
| Filter | FARFilter | The actual asset registry filter. | Filters/CustomClassFilterData.h | |
| FilterDisplayName | FText | The Filter display name | Filters/CustomClassFilterData.h | |
| FilterName | FString | The Filter name | Filters/CustomClassFilterData.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddCategory
(
TSharedPtr< FFilterCategory > InCategory |
Unlike normal filters, Type Filters are allowed to belong to multiple categories | Filters/CustomClassFilterData.h | |
void BuildBackendFilter
(
FARFilter& OutFilter |
Add this filter to the input BackendFilter | Filters/CustomClassFilterData.h | |
TArray< TSharedPtr< FFilterCategory > > GetCategories() |
Get the Catgories this filter belongs to | Filters/CustomClassFilterData.h | |
UClass * GetClass() |
Get the UClass associated with this filter | Filters/CustomClassFilterData.h | |
FTopLevelAssetPath GetClassPathName() |
Returns class path name as a package + class FName pair | Filters/CustomClassFilterData.h | |
FLinearColor GetColor() |
Get the color of this filter | Filters/CustomClassFilterData.h | |
FString GetFilterName() |
Get the display name of this filter class | Filters/CustomClassFilterData.h | |
FText GetName() |
Get the logical name of this filter class | Filters/CustomClassFilterData.h |