Navigation
API > API/Plugins > API/Plugins/ContentBrowserAssetDataSource
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UContentBrowserDataSource
- UContentBrowserAssetDataSource
References
| Module | ContentBrowserAssetDataSource |
| Header | /Engine/Plugins/Editor/ContentBrowser/ContentBrowserAssetDataSource/Source/ContentBrowserAssetDataSource/Public/ContentBrowserAssetDataSource.h |
| Include | #include "ContentBrowserAssetDataSource.h" |
Syntax
UCLASS&40;&41;
class UContentBrowserAssetDataSource : public UContentBrowserDataSource
Variables
| Type | Name | Description | |
|---|---|---|---|
| *param OutCompiledFilter The output filer supplied to this will be used to filter objects when a... | assets | ||
| *param Filter The compiled filter to test with supplied by const FContentBrowserItemData const F... | Filter | ||
| *param OutCompiledFilter The output filer supplied to optionally recursive **return fals... | folders | ||
| *param Filter The compiled filter to test with supplied by const FContentBrowserItemData & | InItem | ||
| *param OutCompiledFilter The output filer supplied to this will be used to filter objects when a... | requested | ||
| *param OutCompiledFilter The output filer supplied to this will be used to filter objects when a... | set |
Functions
| Type | Name | Description | |
|---|---|---|---|
| *param OutCompiledFilter The output filer supplied to | Call in CompileFilter() after CreatePathFilter() to fill OutCompiledFilter with an FContentBrowserCompiledAssetDataFilter capable of filtering assets | ||
| *param OutCompiledFilter The output filer supplied to | Call in CompileFilter() to populate an FAssetFilterInputParams for use in CreatePathFilter and CreateAssetFilter. | ||
| *param OutCompiledFilter The output filer supplied to | Call in CompileFilter() after PopulateAssetFilterInputParams() to fill OutCompiledFilter with an FContentBrowserCompiledAssetDataFilter capable of filtering folders | ||
| *param OutCompiledFilter The output filer supplied to otherwise true *staticbool | CreateAssetFilter
(
FAssetFilterInputParams& Params, |
||
| *param OutCompiledFilter The output filer supplied to optionally recursive **return fals... | CreatePathFilter
(
FAssetFilterInputParams& Params, |
||
| *param Filter The compiled filter to test with supplied by | Call in DoesItemPassFilter() to check if a folder passes the compiled asset data filter. | ||
| void | EnumerateFoldersMatchingFilter
(
UContentBrowserDataSource* DataSource, |
Call in EnumerateItemsMatchingFilter() to generate a list of folders that match the compiled filter. | |
| void | Initialize
(
const bool InAutoRegister |
||
| bool | PathPassesCompiledDataFilter
(
const FContentBrowserCompiledAssetDataFilter& InFilter, |
||
| *param OutCompiledFilter The output filer supplied to this will be used to filter objects when a... | PopulateAssetFilterInputParams
(
FAssetFilterInputParams& Params, |
Overridden from UContentBrowserDataSource
| Type | Name | Description | |
|---|---|---|---|
| bool | AppendItemReference
(
const FContentBrowserItemData& InItem, |
Attempt to append any path references for the given item to the given string. | |
| void | Rebuilds the tree of virtual paths that ends with internal roots | ||
| bool | BulkCopyItems
(
TArrayView< const FContentBrowserItemData > InItems, |
Attempt to copy the given items to the given virtual path. | |
| bool | BulkDeleteItems
(
TArrayView< const FContentBrowserItemData > InItems |
Attempt to delete the given items. | |
| bool | BulkDuplicateItems
(
TArrayView< const FContentBrowserItemData > InItems, |
Attempt to synchronously duplicate the given items. | |
| bool | BulkEditItems
(
TArrayView< const FContentBrowserItemData > InItems |
Attempt to open the given item for editing. | |
| bool | BulkMoveItems
(
TArrayView< const FContentBrowserItemData > InItems, |
Attempt to move the given items to the given virtual path. | |
| bool | BulkPreviewItems
(
TArrayView< const FContentBrowserItemData > InItems |
Attempt to preview the given items. | |
| bool | BulkPrivatizeItems
(
TArrayView< const FContentBrowserItemData > InItems |
Attempt to mark the given items as private (NotExternallyReferenceable) | |
| bool | BulkSaveItems
(
TArrayView< const FContentBrowserItemData > InItems, |
Attempt to save the given items. | |
| bool | BulkViewItems
(
TArrayView< const FContentBrowserItemData > InItems |
Attempt to open the given items for read-only viewing. | |
| bool | CanCopyItem
(
const FContentBrowserItemData& InItem, |
Query whether the given item is can be copied, optionally providing error information if it cannot. | |
| bool | CanCreateFolder
(
const FName InPath, |
Query whether a folder can be created at the given virtual path, optionally providing error information if it cannot. | |
| bool | CanDeleteItem
(
const FContentBrowserItemData& InItem, |
Query whether the given item is can be deleted, optionally providing error information if it cannot. | |
| bool | CanDuplicateItem
(
const FContentBrowserItemData& InItem, |
Query whether the given item is can be duplicated, optionally providing error information if it cannot. | |
| bool | CanEditItem
(
const FContentBrowserItemData& InItem, |
Query whether the given item is can be edited, optionally providing error information if it cannot. | |
| bool | CanMoveItem
(
const FContentBrowserItemData& InItem, |
Query whether the given item is can be moved, optionally providing error information if it cannot. | |
| bool | CanPreviewItem
(
const FContentBrowserItemData& InItem, |
Query whether the given item is can be previewed, optionally providing error information if it cannot. | |
| bool | CanPrivatizeItem
(
const FContentBrowserItemData& InItem, |
Query whether the given item can be privatized, optionally providing error information if it cannot. | |
| bool | CanRenameItem
(
const FContentBrowserItemData& InItem, |
Query whether the given item is can be renamed, optionally providing error information if it cannot. | |
| bool | CanSaveItem
(
const FContentBrowserItemData& InItem, |
Query whether the given item is can be saved, optionally providing error information if it cannot. | |
| bool | CanViewItem
(
const FContentBrowserItemData& InItem, |
Query whether the given item is can be viewed (a read-only asset editor), optionally providing error information if it cannot. | |
| void | ClearCachedFilterData
(
const FContentBrowserDataFilterCacheIDOwner& IDOwner |
Tell the data source to remove the cached data for the filter compilation for this specific owner. | |
| void | CompileFilter
(
const FName InPath, |
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. | |
| bool | ConvertItemForFilter
(
FContentBrowserItemData& Item, |
Let the compiled filter decide the payload and the type of the item Some Compiled filter might change the type/payload of the item. | |
| bool | CopyItem
(
const FContentBrowserItemData& InItem, |
Attempt to copy the given item to the given virtual path. | |
| bool | CreateFolder
(
const FName InPath, |
Attempt to begin the process of asynchronously creating a folder at the given virtual path, populating a temporary item that can be finalized or canceled by the user. | |
| bool | DeleteItem
(
const FContentBrowserItemData& InItem |
Attempt to delete the given item. | |
| bool | DoesItemPassFilter
(
const FContentBrowserItemData& InItem, |
Query whether the given item passes the given compiled filter. | |
| bool | DuplicateItem
(
const FContentBrowserItemData& InItem, |
Attempt to begin the process of asynchronously duplicating the given item, populating a temporary item that can be finalized or canceled by the user. | |
| bool | EditItem
(
const FContentBrowserItemData& InItem |
Attempt to open the given item for editing. | |
| void | EnumerateItemsAtPath
(
const FName InPath, |
Enumerate items that have the given virtual path, optionally filtering by type, and invoking the callback for each matching item. | |
| bool | EnumerateItemsAtPaths
(
const TArrayView< FContentBrowserItemPath > InPaths, |
Enumerate the items (folders and/or files) that exist at the given content browser paths. | |
| void | EnumerateItemsMatchingFilter
(
const FContentBrowserDataCompiledFilter& InFilter, |
Enumerate items that match the given compiled filter, invoking the callback for each matching item. | |
| bool | GetItemAttribute
(
const FContentBrowserItemData& InItem, |
Query the value of the given attribute on the given item. | |
| bool | GetItemAttributes
(
const FContentBrowserItemData& InItem, |
Query the values of all attributes on the given item. | |
| bool | GetItemPhysicalPath
(
const FContentBrowserItemData& InItem, |
Query the physical (on-disk) path of the given item. | |
| bool | HandleDragDropOnItem
(
const FContentBrowserItemData& InItem, |
Called to provide custom drag and drop handling when a drag event is dropped on an item. | |
| bool | HandleDragEnterItem
(
const FContentBrowserItemData& InItem, |
Called to provide custom drag and drop handling when a drag event enters an item, such as performing validation and reporting error information. | |
| bool | HandleDragLeaveItem
(
const FContentBrowserItemData& InItem, |
Called to provide custom drag and drop handling when a drag event leaves an item, such as clearing any error information set during earlier validation. | |
| bool | HandleDragOverItem
(
const FContentBrowserItemData& InItem, |
Called to provide custom drag and drop handling while a drag event is over an item, such as performing validation and reporting error information. | |
| bool | IsDiscoveringItems
(
FText* OutStatus |
Query whether this data source instance is currently discovering content, and retrieve an optional status message that can be shown in the UI. | |
| bool | IsFolderVisible
(
const FName InPath, |
Query whether the given virtual folder should be visible in the UI. | |
| bool | IsItemDirty
(
const FContentBrowserItemData& InItem |
Query whether the given item is considered dirty (ie, has unsaved changes). | |
| bool | Legacy_TryConvertAssetDataToVirtualPath
(
const FAssetData& InAssetData, |
Attempt to convert the given asset data to a virtual path associated with this data source. | |
| bool | Legacy_TryConvertPackagePathToVirtualPath
(
const FName InPackagePath, |
Attempt to convert the given package path to a virtual path associated with this data source. | |
| bool | Legacy_TryGetAssetData
(
const FContentBrowserItemData& InItem, |
Attempt to retrieve the asset data associated with the given item. | |
| bool | Legacy_TryGetPackagePath
(
const FContentBrowserItemData& InItem, |
Attempt to retrieve the package path associated with the given item. | |
| bool | MoveItem
(
const FContentBrowserItemData& InItem, |
Attempt to move the given item to the given virtual path. | |
| bool | PreviewItem
(
const FContentBrowserItemData& InItem |
Attempt to preview the given item. | |
| bool | PrioritizeSearchPath
(
const FName InPath |
If possible, attempt to prioritize content discovery for the given virtual path. | |
| bool | PrivatizeItem
(
const FContentBrowserItemData& InItem |
Attempt to mark the given item as private (NotExternallyReferenceable). | |
| void | RemoveUnusedCachedFilterData
(
const FContentBrowserDataFilterCacheIDOwner& IDOwner, |
Tell the data source to remove any cached data for the filter compilation that might not be needed any more. | |
| bool | RenameItem
(
const FContentBrowserItemData& InItem, |
Attempt to rename the given item. | |
| bool | SaveItem
(
const FContentBrowserItemData& InItem, |
Attempt to save the given item. | |
| void | Shutdown () |
Shutdown this data source instance. | |
| bool | TryGetCollectionId
(
const FContentBrowserItemData& InItem, |
Attempt to retrieve the identifier that should be used when storing a reference to the given item within a collection. | |
| bool | UpdateThumbnail
(
const FContentBrowserItemData& InItem, |
Attempt to update the thumbnail associated with the given item. | |
| bool | ViewItem
(
const FContentBrowserItemData& InItem |
Attempt to open the given item for read-only viewing. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FAssetDataSourceFilterCache | A struct used to cache some data to accelerate the compilation of the filters for the asset data source | ||
| FAssetFilterInputParams | All of the data necessary to generate a compiled filter for folders and assets |
Typedefs
| Name | Description |
|---|---|
| FCompileARFilterFunc | |
| FCreateFolderItemFunc | |
| FSubPathEnumerationFunc |
Constants
| Name | Description |
|---|---|
| OnAssetPathAddedDelegate | |
| OnAssetPathRemovedDelegate |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CreateAssetFilter
(
FAssetFilterInputParams& Params, |
Use the override without the function to customize the compilation the ARFilter or duplicate this function logic. This function will no longer be supported and will be removed to allow future performence improvements |