UContentBrowserClassDataSource

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

ContentBrowserClassDataSource

Header

/Engine/Plugins/Editor/ContentBrowser/ContentBrowserClassDataSource/Source/ContentBrowserClassDataSource/Public/ContentBrowserClassDataSource.h

Include

#include "ContentBrowserClassDataSource.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UContentBrowserClassDataSource : public UContentBrowserDataSource

Functions

Name Description

Public function

void

 

Initialize

(
    const FName InMountRoot,
    const bool InAutoRegister
)

Overridden from UContentBrowserDataSource

Name Description

Public function Virtual

bool

 

AppendItemReference

(
    const FContentBrowserItemData& InI...,
    FString& InOutStr
)

Attempt to append any path references for the given item to the given string.

Public function Virtual

bool

 

BulkEditItems

(
    TArrayView< const FContentBrowserIt...
)

Attempt to open the given item for editing.

Public function Virtual

bool

 

CanEditItem

(
    const FContentBrowserItemData& InI...,
    FText* OutErrorMsg
)

Query whether the given item is can be edited, optionally providing error information if it cannot.

Public function Virtual

void

 

CompileFilter

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

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.

Public function Virtual

bool

 

DoesItemPassFilter

(
    const FContentBrowserItemData& InI...,
    const FContentBrowserDataCompiledFi...
)

Query whether the given item passes the given compiled filter.

Public function Virtual

bool

 

EditItem

(
    const FContentBrowserItemData& InI...
)

Attempt to open the given item for editing.

Public function Virtual

void

 

EnumerateItemsAtPath

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

Enumerate items that have the given virtual path, optionally filtering by type, and invoking the callback for each matching item.

Public function Virtual

void

 

EnumerateItemsMatchingFilter

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

Enumerate items that match the given compiled filter, invoking the callback for each matching item.

Protected function Virtual

void

 

EnumerateRootPaths

(
    const FContentBrowserDataFilter& I...,
    TFunctionRef< void)> InCallba...
)

Iterate over each of the root paths in this data source.

Public function Virtual

bool

 

GetItemAttribute

(
    const FContentBrowserItemData& InI...,
    const bool InIncludeMetaData,
    const FName InAttributeKey,
    FContentBrowserItemDataAttributeVal...
)

Query the value of the given attribute on the given item.

Public function Virtual

bool

 

GetItemAttributes

(
    const FContentBrowserItemData& InI...,
    const bool InIncludeMetaData,
    FContentBrowserItemDataAttributeVal...
)

Query the values of all attributes on the given item.

Public function Virtual

bool

 

GetItemPhysicalPath

(
    const FContentBrowserItemData& InI...,
    FString& OutDiskPath
)

Query the physical (on-disk) path of the given item.

Public function Virtual

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 Virtual

bool

 

Legacy_TryConvertAssetDataToVirtualPath

(
    const FAssetData& InAssetData,
    const bool InUseFolderPaths,
    FName& OutPath
)

Attempt to convert the given asset data to a virtual path associated with this data source.

Public function Virtual

bool

 

Legacy_TryConvertPackagePathToVirtualPath

(
    const FName InPackagePath,
    FName& OutPath
)

Attempt to convert the given package path to a virtual path associated with this data source.

Public function Virtual

bool

 

Legacy_TryGetAssetData

(
    const FContentBrowserItemData& InI...,
    FAssetData& OutAssetData
)

Attempt to retrieve the asset data associated with the given item.

Public function Virtual

bool

 

Legacy_TryGetPackagePath

(
    const FContentBrowserItemData& InI...,
    FName& OutPackagePath
)

Attempt to retrieve the package path associated with the given item.

Public function Virtual

void

 

Shutdown()

Shutdown this data source instance.

Public function Virtual

bool

 

TryGetCollectionId

(
    const FContentBrowserItemData& InI...,
    FName& OutCollectionId
)

Attempt to retrieve the identifier that should be used when storing a reference to the given item within a collection.

Public function Virtual

bool

 

UpdateThumbnail

(
    const FContentBrowserItemData& InI...,
    FAssetThumbnail& InThumbnail
)

Attempt to update the thumbnail associated with the given item.

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