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.

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

Name Description

Public function

FCustomClassFilterData

(
    UAssetDefinition* InAssetDefin...,
    const FAssetFilterData& InAssetTyp...
)

You can provide an IAssetTypeActions for your type to get all the information from that

Public function

FCustomClassFilterData

(
    UClass* InClass,
    TSharedPtr< FFilterCategory > InCat...,
    FLinearColor InColor
)

Or you can provide a UClass, a Category and a Color to identify the filter

Functions

Name Description

Public function

void

 

AddCategory

(
    TSharedPtr< FFilterCategory > InCat...
)

Unlike normal filters, Type Filters are allowed to belong to multiple categories

Public function

void

 

BuildBackendFilter

(
    FARFilter& OutFilter
)

Add this filter to the input BackendFilter

Public function Const

TArray< TSha...

 

GetCategories()

Get the Catgories this filter belongs to

Public function Const

UClass *

 

GetClass()

Get the UClass associated with this filter

Public function Const

FTopLevelAss...

 

GetClassPathName()

Returns class path name as a package + class FName pair

Public function Const

FLinearColor

 

GetColor()

Get the color of this filter

Public function Const

FString

 

GetFilterName()

Get the display name of this filter class

Public function Const

FText

 

GetName()

Get the logical name of this filter class

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Cancel