UContentBrowserDataSource::CompileFilter

Given a path and a data filter, produce an optimized filter that can be used to efficiently enumerate items that match it, and also query whether an item would pass it.

Unreal Engine C++ API Reference > Editor > ContentBrowserData > UContentBrowserDataSource

  • UContentBrowserDataSource::CompileFilter()

References

   
Module ContentBrowserData
Header /Engine/Source/Editor/ContentBrowserData/Public/ContentBrowserDataSource.h
Include #include "ContentBrowserDataSource.h"
Source /Engine/Source/Editor/ContentBrowserData/Private/ContentBrowserDataSource.cpp
virtual void CompileFilter
(
    const [FName](API\Runtime\Core\UObject\FName) InPath,
    const [FContentBrowserDataFilter](API\Editor\ContentBrowserData\FContentBrowserDataFilter) & InFilter,
    [FContentBrowserDataCompiledFilter](API\Editor\ContentBrowserData\FContentBrowserDataCompiledFilte-) & OutCompiledFilter
)

Remarks

Given a path and a data filter, produce an optimized filter that can be used to efficiently enumerate items that match it, and also query whether an item would pass it.

This function must not block waiting on content discovery! It should use the current state as known at this point in time.

A compiled filter should be short-lived (no more than 1 frame).

Parameters

Name Description
InPath The virtual path to search for items under.
InFilter Rules describing how items should be filtered.
OutCompiledFilter The compiled filter instance to fill with the result.

See Also

EnumerateItemsMatchingFilter and DoesItemPassFilter.


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library