Module |
|
Header |
/Engine/Source/Editor/ContentBrowserData/Public/ContentBrowserDataSource.h |
Include |
#include "ContentBrowserDataSource.h" |
class UContentBrowserDataSource :
public UObject,
public IModularFeature
A common implementation of a "do nothing" data source for the Content Browser. You should derive from this type to create new data sources for the Content Browser, overriding any required functionality and validation logic.
Data sources create and operate on FContentBrowserItemData instances that represent the folders and files within each data source. FContentBrowserItemData itself is a concrete type, so extensibility is handled via the IContentBrowserItemDataPayload interface, which can be used to store any data source defined payload data that is required to operate on the underlying thing that the item represents.
This is the only API you need to implement to create a data source, as each FContentBrowserItemData instance knows which data source owns it, and uses that information to pass itself back into the correct data source instance when asked to perform actions or validation. In that sense you can think of this like a C API, where the data source returns an opaque object that is later passed back into the data source functions so that they can interpret the opaque object and provide functionality for it.
Name | Description | ||
---|---|---|---|
|
AppendItemReference ( |
Attempt to append any path references for the given item to the given string. |
|
|
BulkCopyItems ( |
Attempt to copy the given items to the given virtual path. |
|
|
BulkDeleteItems ( |
Attempt to delete the given items. |
|
|
BulkDuplicateItems ( |
Attempt to synchronously duplicate the given items. |
|
|
BulkEditItems ( |
Attempt to open the given item for editing. |
|
|
BulkMoveItems ( |
Attempt to move the given items to the given virtual path. |
|
|
BulkPreviewItems ( |
Attempt to preview the given items. |
|
|
BulkSaveItems ( |
Attempt to save the given items. |
|
|
CanCopyItem ( |
Query whether the given item is can be copied, optionally providing error information if it cannot. |
|
|
CanCreateFolder |
Query whether a folder can be created at the given virtual path, optionally providing error information if it cannot. |
|
|
CanDeleteItem ( |
Query whether the given item is can be deleted, optionally providing error information if it cannot. |
|
|
CanDuplicateItem ( |
Query whether the given item is can be duplicated, optionally providing error information if it cannot. |
|
|
CanEditItem ( |
Query whether the given item is can be edited, optionally providing error information if it cannot. |
|
|
CanMoveItem ( |
Query whether the given item is can be moved, optionally providing error information if it cannot. |
|
|
CanPreviewItem ( |
Query whether the given item is can be previewed, optionally providing error information if it cannot. |
|
|
CanRenameItem ( |
Query whether the given item is can be renamed, optionally providing error information if it cannot. |
|
|
CanSaveItem ( |
Query whether the given item is can be saved, optionally providing error information if it cannot. |
|
|
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. |
|
|
CopyItem ( |
Attempt to copy the given item to the given virtual path. |
|
|
TSharedPtr< ... |
CreateCustomDragOperation ( |
Called to provide custom drag and drop handling when starting a drag event. |
|
CreateFolder ( |
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. |
|
|
DeleteItem ( |
Attempt to delete the given item. |
|
|
DoesItemPassFilter ( |
Query whether the given item passes the given compiled filter. |
|
|
DuplicateItem ( |
Attempt to begin the process of asynchronously duplicating the given item, populating a temporary item that can be finalized or canceled by the user. |
|
|
EditItem ( |
Attempt to open the given item for editing. |
|
|
EnumerateItemsAtPath ( |
Enumerate items that have the given virtual path, optionally filtering by type, and invoking the callback for each matching item. |
|
|
EnumerateItemsMatchingFilter ( |
Enumerate items that match the given compiled filter, invoking the callback for each matching item. |
|
|
EnumerateRootPaths ( |
Iterate over each of the root paths in this data source. |
|
|
ExpandVirtualPath |
Convert virtual path to one or more internal paths and any number of virtual paths Example: The "/All" virtual path corresponds to more than one internal root paths such as "/Game" and possibly multiple virtual paths such as "/All/Plugins" |
|
|
GetItemAttribute ( |
Query the value of the given attribute on the given item. |
|
|
GetItemAttributes ( |
Query the values of all attributes on the given item. |
|
|
GetItemPhysicalPath ( |
Query the physical (on-disk) path of the given item. |
|
|
GetModularFeatureTypeName() |
Get the name used when registering data source modular feature instances for use with the Content Browser Data Subsystem. |
|
|
GetVirtualMountRoot() |
Get the virtual mount root that was passed to Initialize. |
|
|
TArrayView< ... |
GetVirtualMountRootHierarchy() |
Get the virtual folder paths required to get to the virtual mount root of this data source instance. |
|
HandleDragDropOnItem ( |
Called to provide custom drag and drop handling when a drag event is dropped on an item. |
|
|
HandleDragEnterItem ( |
Called to provide custom drag and drop handling when a drag event enters an item, such as performing validation and reporting error information. |
|
|
HandleDragLeaveItem ( |
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. |
|
|
HandleDragOverItem ( |
Called to provide custom drag and drop handling while a drag event is over an item, such as performing validation and reporting error information. |
|
|
Initialize |
Initialize this data source instance, optionally registering it once the initialization has finished ( |
|
|
IsDiscoveringItems ( |
Query whether this data source instance is currently discovering content, and retrieve an optional status message that can be shown in the UI. |
|
|
IsFolderVisibleIfHidingEmpty ( |
Query whether the given virtual folder should be visible if the UI is asking to hide empty content folders. |
|
|
IsInitialized() |
True if this data source is currently initialized. |
|
|
IsItemDirty ( |
Query whether the given item is considered dirty (ie, has unsaved changes). |
|
|
IsVirtualPathUnderMountRoot ( |
Test whether the given virtual path is under the virtual mount root that was passed to Initialize. |
|
|
Legacy_TryConvertAssetDataToVirtualPath ( |
Attempt to convert the given asset data to a virtual path associated with this data source. |
|
|
Legacy_TryConvertPackagePathToVirtualPath |
Attempt to convert the given package path to a virtual path associated with this data source. |
|
|
Legacy_TryGetAssetData ( |
Attempt to retrieve the asset data associated with the given item. |
|
|
Legacy_TryGetPackagePath ( |
Attempt to retrieve the package path associated with the given item. |
|
|
MoveItem ( |
Attempt to move the given item to the given virtual path. |
|
|
NotifyItemDataRefreshed() |
Notify a wholesale item data update, for data sources that can't provide delta-updates. |
|
|
PreviewItem ( |
Attempt to preview the given item. |
|
|
PrioritizeSearchPath ( |
If possible, attempt to prioritize content discovery for the given virtual path. |
|
|
QueueItemDataUpdate ( |
Queue an incremental item data update, for data sources that can provide delta-updates. |
|
|
RegisterDataSource() |
Register this data source instance for use with the Content Browser Data Subsystem. |
|
|
RenameItem ( |
Attempt to rename the given item. |
|
|
SaveItem ( |
Attempt to save the given item. |
|
|
SetDataSink ( |
Set the data sink that can be used to communicate with the Content Browser Data Subsystem. |
|
|
Shutdown() |
Shutdown this data source instance. |
|
|
Tick ( |
Tick this data source instance. |
|
|
TryConvertInternalPathToVirtual |
Convert an internal path to its virtualized form, based on the mount root set on this data source. |
|
|
TryConvertVirtualPathToInternal |
Convert a virtualized path to its internal form, based on the mount root set on this data source. |
|
|
TryGetCollectionId ( |
Attempt to retrieve the identifier that should be used when storing a reference to the given item within a collection. |
|
|
UnregisterDataSource() |
Unregister this data source instance from the Content Browser Data Subsystem. |
|
|
UpdateThumbnail ( |
Attempt to update the thumbnail associated with the given item. |
Name | Description | ||
---|---|---|---|
|
BeginDestroy() |
Called before destroying the object. |