Navigation
API > API/Plugins > API/Plugins/ContentBrowserFileDataSource
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UContentBrowserDataSource
- UContentBrowserFileDataSource
References
| Module | ContentBrowserFileDataSource |
| Header | /Engine/Plugins/Editor/ContentBrowser/ContentBrowserFileDataSource/Source/ContentBrowserFileDataSource/Public/ContentBrowserFileDataSource.h |
| Include | #include "ContentBrowserFileDataSource.h" |
Syntax
UCLASS&40;&41;
class UContentBrowserFileDataSource : public UContentBrowserDataSource
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSet< FString > | AlwaysVisibleFolders | The set of folders that should always be visible, even if they contain no files in the Content Browser view. | |
| TSharedPtr< FContentBrowserFileDataDiscovery > | BackgroundDiscovery | ||
| ContentBrowserFileData::FFileConfigData | Config | ||
| TMap< FName, FDiscoveredItem > | DiscoveredItems | ||
| TSet< FString > | EmptyFolders | A cache of folders that contain no files in the Content Browser view. | |
| TArray< TSharedRef< IAssetTypeActions > > | RegisteredAssetTypeActions | ||
| TMap< FName, TArray< FName > > | RegisteredFileMountRoots | ||
| TSortedMap< FName, FFileMount, FDefaultAllocator, FNameFastLess > | RegisteredFileMounts |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddDiscoveredItem
(
FDiscoveredItem::EType InItemType, |
||
| void | AddDiscoveredItemImpl
(
FDiscoveredItem::EType InItemType, |
||
| void | AddFileMount
(
const FName InFileMountPath, |
||
| FContentBrowserItemData | CreateFileItem
(
const FName InInternalPath, |
||
| FContentBrowserItemData | CreateFolderItem
(
const FName InInternalPath, |
||
| FContentBrowserItemData | CreateItemFromDiscovered
(
const FName InInternalPath, |
||
| TSharedPtr< const FContentBrowserFileItemDataPayload > | GetFileItemPayload
(
const FContentBrowserItemData& InItem |
||
| TSharedPtr< const FContentBrowserFolderItemDataPayload > | GetFolderItemPayload
(
const FContentBrowserItemData& InItem |
||
| bool | HasFileMount
(
const FName InFileMountPath |
||
| void | Initialize
(
const ContentBrowserFileData::FFileConfigData& InConfig, |
||
| bool | IsKnownFileMount
(
const FName InMountPath, |
||
| bool | IsRootFileMount
(
const FName InMountPath, |
||
| void | OnAlwaysShowPath
(
const FStringView InPath |
||
| void | OnAlwaysShowPath
(
const FName InPath |
||
| void | OnDirectoryChanged
(
const TArray< FFileChangeData >& InFileChanges, |
Called when a file in a watched directory changes on disk | |
| FContentBrowserItemData | OnFinalizeCreateFile
(
const FContentBrowserItemData& InItemData, |
||
| FContentBrowserItemData | OnFinalizeCreateFolder
(
const FContentBrowserItemData& InItemData, |
||
| FContentBrowserItemData | OnFinalizeDuplicateFile
(
const FContentBrowserItemData& InItemData, |
||
| void | OnNewFileRequested
(
const FName InDestFolderPath, |
||
| void | OnPathPopulated
(
const FStringView InPath |
||
| void | OnPathPopulated
(
const FName InPath |
||
| bool | OnValidateItemName
(
const FContentBrowserItemData& InItem, |
||
| bool | PassesFilters
(
const FStringView InPath, |
||
| bool | PassesFilters
(
const FName InPath, |
||
| void | PopulateAddNewContextMenu
(
UToolMenu* InMenu |
||
| void | RemoveDiscoveredItem
(
const FString& InMountPath |
||
| void | RemoveDiscoveredItem
(
const FName InMountPath |
||
| void | RemoveDiscoveredItemImpl
(
const FName InMountPath, |
||
| void | RemoveFileMount
(
const FName InFileMountPath |
Overridden from UContentBrowserDataSource
| Type | Name | Description | |
|---|---|---|---|
| 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 | 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 | CanRenameItem
(
const FContentBrowserItemData& InItem, |
Query whether the given item is can be renamed, optionally providing error information if it cannot. | |
| 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 | 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. | |
| 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 | 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 | 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 | RenameItem
(
const FContentBrowserItemData& InItem, |
Attempt to rename the given item. | |
| void | Shutdown () |
Shutdown this data source instance. | |
| void | Tick
(
const float InDeltaTime |
Tick this data source instance. | |
| bool | UpdateThumbnail
(
const FContentBrowserItemData& InItem, |
Attempt to update the thumbnail associated with the given item. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FDiscoveredItem | |||
| FFileMount |