UContentBrowserDataSubsystem

Subsystem that provides access to Content Browser data.

Windows
MacOS
Linux

Inheritance Hierarchy

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.

Functions

Name Description

Public function

void

 

ActivateAllDataSources()

Activate all available data sources.

Public function

bool

 

ActivateDataSource

(
    const FName Name
)

Attempt to activate the named data source.

Public function Const

bool

 

CanCreateFolder

(
    const FName InPath,
    FText* OutErrorMsg
)

Query whether a folder can be created at the given virtual path, optionally providing error information if it cannot.

Public function Const

void

 

CompileFilter

(
    const FName InPath,
    const FContentBrowserDataFilter& I...,
    FContentBrowserDataCompiledFilter&...
)

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).

Public function Const

FContentBrow...

 

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.

Public function

void

 

DeactivateAllDataSources()

Deactivate all active data sources.

Public function

bool

 

DeactivateDataSource

(
    const FName Name
)

Attempt to deactivate the named data source.

Public function Const

void

 

EnumerateItemsAtPath

(
    const FName InPath,
    const EContentBrowserItemTypeFilter...,
    TFunctionRef< bool...
)

Enumerate the items (folders and/or files) that exist at the given virtual path.

Public function Const

void

 

EnumerateItemsAtPath

(
    const FName InPath,
    const EContentBrowserItemTypeFilter...,
    TFunctionRef< bool...
)

Enumerate the items (folders and/or files) that exist at the given virtual path.

Public function Const

void

 

EnumerateItemsMatchingFilter

(
    const FContentBrowserDataCompiledFi...,
    TFunctionRef< bool...
)

Enumerate the items (folders and/or files) that match a previously compiled filter.

Public function Const

void

 

EnumerateItemsMatchingFilter

(
    const FContentBrowserDataCompiledFi...,
    TFunctionRef< bool...
)

Enumerate the items (folders and/or files) that match a previously compiled filter.

Public function Const

void

 

EnumerateItemsUnderPath

(
    const FName InPath,
    const FContentBrowserDataFilter& I...,
    TFunctionRef< bool...
)

Enumerate the items (folders and/or files) that exist under the given virtual path.

Public function Const

void

 

EnumerateItemsUnderPath

(
    const FName InPath,
    const FContentBrowserDataFilter& I...,
    TFunctionRef< bool...
)

Enumerate the items (folders and/or files) that exist under the given virtual path.

Public function Const

TArray< FNam...

 

GetActiveDataSources()

Get the list of current active data sources.

Public function Const

TArray< FNam...

 

GetAvailableDataSources()

Get the list of current available data sources.

Public function Const

FContentBrow...

 

GetItemAtPath

(
    const FName InPath,
    const EContentBrowserItemTypeFilter...
)

Get the first item (folder and/or file) that exists at the given virtual path.

Public function Const

TArray< FCon...

 

GetItemsAtPath

(
    const FName InPath,
    const EContentBrowserItemTypeFilter...
)

Get the items (folders and/or files) that exist at the given virtual path.

Public function Const

TArray< FCon...

 

GetItemsUnderPath

(
    const FName InPath,
    const FContentBrowserDataFilter& I...
)

Get the items (folders and/or files) that exist under the given virtual path.

Public function Const

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.

Public function Const

bool

 

IsFolderVisibleIfHidingEmpty

(
    const FName InPath
)

Query whether the given virtual folder should be visible if the UI is asking to hide empty content folders.

Public function

void

 

Legacy_TryConvertAssetDataToVirtualPaths

(
    const FAssetData& InAssetData,
    const bool InUseFolderPaths,
    TFunctionRef< bool)> InCallba...
)

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).

Public function

void

 

Legacy_TryConvertPackagePathToVirtualPaths

(
    const FName InPackagePath,
    TFunctionRef< bool)> InCallba...
)

Attempt to convert the given package path to virtual paths associated with the active data sources (callback will be called for each successful conversion).

Public function

FOnContentBr...

 

OnItemDataDiscoveryComplete()

Delegate called when all active data sources have completed their initial content discovery scan.

Public function

FOnContentBr...

 

OnItemDataRefreshed()

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.

Public function

FOnContentBr...

 

OnItemDataUpdated()

Delegate called for incremental item data updates from data sources that can provide delta-updates.

Public function

bool

 

PrioritizeSearchPath

(
    const FName InPath
)

If possible, attempt to prioritize content discovery for the given virtual path.

Overridden from USubsystem

Name Description

Public function Virtual

void

 

Deinitialize()

Implement this for deinitialization of instances of the system

Public function Virtual

void

 

Initialize

(
    FSubsystemCollectionBase& Collecti...
)

Implement this for initialization of instances of the system

Typedefs

Name

Description

FNameToDataSourceMap

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss