Navigation
API > API/Editor > API/Editor/ContentBrowserData
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USubsystem
- UDynamicSubsystem
- UEditorSubsystem
- UContentBrowserDataSubsystem
References
| Module | ContentBrowserData |
| Header | /Engine/Source/Editor/ContentBrowserData/Public/ContentBrowserDataSubsystem.h |
| Include | #include "ContentBrowserDataSubsystem.h" |
Syntax
class UContentBrowserDataSubsystem :
public UEditorSubsystem,
public IContentBrowserItemDataSink
Remarks
Subsystem that provides access to Content Browser data. This type deals with the composition of multiple data sources, which provide information about the folders and files available in the Content Browser.
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Activate all available data sources. | ||
| bool | ActivateDataSource
(
const FName Name |
Attempt to activate the named data source. | |
| bool | CanCreateFolder
(
const FName InPath, |
Query whether a folder can be created at the given virtual path, optionally providing error information if it cannot. | |
| void | CompileFilter
(
const FName InPath, |
Take a raw data filter and convert it into a compiled version that could be re-used for multiple queries using the same data (typically this is only useful for post-filtering multiple items). | |
| TArray< FString > | ConvertInternalPathsToVirtual
(
const TArray< FString >& InPaths |
||
| void | ConvertInternalPathToVirtual
(
const FStringView InPath, |
Converts an internal path to a virtual path based on current rules | |
| void | ConvertInternalPathToVirtual
(
FName InPath, |
Converts an internal path to a virtual path. | |
| FName | ConvertInternalPathToVirtual
(
FName InPath |
Converts an internal path to a virtual path. | |
| FContentBrowserItemTemporaryContext | CreateFolder
(
const FName InPath |
Attempt to begin the process of asynchronously creating a folder at the given virtual path, returning a temporary item that can be finalized or canceled by the user. | |
| void | Deactivate all active data sources. | ||
| bool | DeactivateDataSource
(
const FName Name |
Attempt to deactivate the named data source. | |
| void | EnumerateItemsAtPath
(
const FName InPath, |
Enumerate the items (folders and/or files) that exist at the given virtual path. | |
| void | EnumerateItemsAtPath
(
const FName InPath, |
Enumerate the items (folders and/or files) that exist at the given virtual path. | |
| bool | EnumerateItemsAtPaths
(
const TArrayView< struct FContentBrowserItemPath > InItemPaths, |
Enumerate the items (files) that exist at the given paths. | |
| bool | EnumerateItemsForObjects
(
const TArrayView< UObject* > InObjects, |
Enumerate the items (files) that exist for the given objects. | |
| void | EnumerateItemsMatchingFilter
(
const FContentBrowserDataCompiledFilter& InFilter, |
Enumerate the items (folders and/or files) that match a previously compiled filter. | |
| void | EnumerateItemsMatchingFilter
(
const FContentBrowserDataCompiledFilter& InFilter, |
Enumerate the items (folders and/or files) that match a previously compiled filter. | |
| void | EnumerateItemsUnderPath
(
const FName InPath, |
Enumerate the items (folders and/or files) that exist under the given virtual path. | |
| void | EnumerateItemsUnderPath
(
const FName InPath, |
Enumerate the items (folders and/or files) that exist under the given virtual path. | |
| TArray< FName > | Get the list of current active data sources. | ||
| TArray< FContentBrowserItemPath > | GetAliasesForPath
(
const FName InInternalPath |
Get a list of other paths that the data source may be using to represent a specific path | |
| TArray< FContentBrowserItemPath > | GetAliasesForPath
(
const FContentBrowserItemPath InPath |
Get a list of other paths that the data source may be using to represent a specific path | |
| TArray< FContentBrowserItemPath > | GetAliasesForPath
(
const FSoftObjectPath& InInternalPath |
Get a list of other paths that the data source may be using to represent a specific path | |
| const FString & | Prefix to use when generating virtual paths and "Show All Folder" option is enabled | ||
| TArray< FName > | Get the list of current available data sources. | ||
| const TArray< FName > & | Returns reference to default list of paths that appear first in content browser based on internal or invariant paths | ||
| TSharedRef< FPathPermissionList > & | Permission list that controls whether content in a given folder path can be edited. | ||
| FContentBrowserItem | GetItemAtPath
(
const FName InPath, |
Get the first item (folder and/or file) that exists at the given virtual path. | |
| TArray< FContentBrowserItem > | GetItemsAtPath
(
const FName InPath, |
Get the items (folders and/or files) that exist at the given virtual path. | |
| TArray< FContentBrowserItem > | GetItemsUnderPath
(
const FName InPath, |
Get the items (folders and/or files) that exist under the given virtual path. | |
| const TArray< FName > & | Returns reference to list of paths that appear first in content browser based on internal or invariant paths | ||
| bool | IsDiscoveringItems
(
TArray< FText >* OutStatus |
Query whether any data sources are currently discovering content, and retrieve optional status messages that can be shown in the UI. | |
| bool | IsFolderVisible
(
const FName InPath, |
Query whether the given virtual folder should be visible in the UI. | |
| void | Legacy_TryConvertAssetDataToVirtualPaths
(
const FAssetData& InAssetData, |
Attempt to convert the given asset data to a virtual paths associated with the active data sources (callback will be called for each successful conversion). | |
| void | Legacy_TryConvertPackagePathToVirtualPaths
(
const FName InPackagePath, |
Attempt to convert the given package path to virtual paths associated with the active data sources (callback will be called for each successful conversion). | |
| FContentBrowserGenerateVirtualPathDelegate & | Delegate called to generate a virtual path. Can be set to override default behavior. | ||
| FOnContentBrowserItemDataDiscoveryComplete & | Delegate called when all active data sources have completed their initial content discovery scan. | ||
| FOnContentBrowserItemDataRefreshed & | Delegate called for wholesale item data updates from data sources that can't provide delta-updates, or when the set of active data sources is modified. | ||
| FOnContentBrowserItemDataUpdated & | Delegate called for incremental item data updates from data sources that can provide delta-updates. | ||
| bool | PrioritizeSearchPath
(
const FName InPath |
If possible, attempt to prioritize content discovery for the given virtual path. | |
| void | Rebuild the virtual path tree if rules have changed. | ||
| void | SetGenerateVirtualPathPrefixDelegate
(
const FContentBrowserGenerateVirtualPathDelegate& InDelegate |
Set delegate used to generate a virtual path. | |
| void | SetPathViewSpecialSortFolders
(
const TArray< FName >& InSpecialSortFolders |
Customize list of folders that appear first in content browser based on internal or invariant paths | |
| void | Call when rules of virtual path generation have changed beyond content browser settings. | ||
| EContentBrowserPathType | TryConvertVirtualPath
(
const FStringView InPath, |
Converts virtual path back into an internal or invariant path | |
| EContentBrowserPathType | TryConvertVirtualPath
(
const FStringView InPath, |
Converts virtual path back into an internal or invariant path | |
| EContentBrowserPathType | TryConvertVirtualPath
(
const FStringView InPath, |
Converts virtual path back into an internal or invariant path | |
| EContentBrowserPathType | TryConvertVirtualPath
(
const FName InPath, |
Converts virtual path back into an internal or invariant path | |
| TArray< FString > | TryConvertVirtualPathsToInternal
(
const TArray< FString >& InVirtualPaths |
Returns array of paths converted to internal. |
Overridden from USubsystem
| Type | Name | Description | |
|---|---|---|---|
| void | Deinitialize () |
Implement this for deinitialization of instances of the system | |
| void | Initialize
(
FSubsystemCollectionBase& Collection |
Implement this for initialization of instances of the system |
Overridden from IContentBrowserItemDataSink
| Type | Name | Description | |
|---|---|---|---|
| void | ConvertInternalPathToVirtual
(
const FStringView InPath, |
Converts an internal path to a virtual path. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FContentBrowserFilterCacheApi | Provide an partial access to private api for the filter cache ID owners See FContentBrowserDataFilterCacheIDOwner declaration for how to use the caching for filter compilation |
Typedefs
| Name | Description |
|---|---|
| FNameToDataSourceMap |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | IsFolderVisibleIfHidingEmpty
(
const FName InPath |
IsFolderVisibleIfHidingEmpty is deprecated. Use IsFolderVisible instead and add EContentBrowserIsFolderVisibleFlags::HideEmptyFolders to the flags. |