FCustomClassFilterData

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.

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

References

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

Syntax

class FCustomClassFilterData  

Remarks

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.

Constructors

Type Name Description
  FCustomClassFilterData ( UAssetDefinition* InAssetDefin..., const FAssetFilterData& InAssetTyp... ) You can provide an IAssetTypeActions for your type to get all the information from that
  FCustomClassFilterData ( UClass* InClass, TSharedPtr< FFilterCategory > InCat..., FLinearColor InColor ) Or you can provide a UClass, a Category and a Color to identify the filter

Functions

Type Name Description
void AddCategory ( TSharedPtr< FFilterCategory > InCat... ) Unlike normal filters, Type Filters are allowed to belong to multiple categories
void BuildBackendFilter ( FARFilter& OutFilter ) Add this filter to the input BackendFilter
TArray< TSha... GetCategories () Get the Catgories this filter belongs to
UClass * GetClass () Get the UClass associated with this filter
FTopLevelAss... GetClassPathName () Returns class path name as a package + class FName pair
FLinearColor GetColor () Get the color of this filter
FString GetFilterName () Get the display name of this filter class
FText GetName () Get the logical name of this filter class

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library