FContentBrowserItemData

The primitive data that represents an internal Content Browser item, as defined and managed by a Content Browser data source.

Unreal Engine C++ API Reference > Editor > ContentBrowserData

References

   
Module ContentBrowserData
Header /Engine/Source/Editor/ContentBrowserData/Public/ContentBrowserItemData.h
Include #include "ContentBrowserItemData.h"

Syntax

class FContentBrowserItemData  

Remarks

The primitive data that represents an internal Content Browser item, as defined and managed by a Content Browser 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 this item represents.

FContentBrowserItemData has no real functionality, and relies on passing itself back into the correct data source instance when asked to perform actions or validation.

This is the lower-level version of FContentBrowserItem, and is used internally by data sources. External code is more likely to use FContentBrowserItem directly, as that type can composite multiple internal items together (eg, combining equivalent folder items from different data sources).

Constructors

Type Name Description
  FContentBrowserItemData () Default constructor.
  FContentBrowserItemData ( const FContentBrowserItemData& ) Copy support.
  FContentBrowserItemData ( FContentBrowserItemData&& ) Move support.
  FContentBrowserItemData ( UContentBrowserDataSource* InO..., EContentBrowserItemFlags InItemFlag..., FName InVirtualPath, FName InItemName, FText InDisplayNameOverride, TSharedPtr< const IContentBrowserIt... ) Create an internal Content Browser item.

Functions

Type Name Description
FText GetDisplayName () Get the user-facing name of this item (eg, "MyFile").
FName GetInternalPath () Get the complete internal path that uniquely identifies this item within its owner data source if it has one (eg, "/MyRoot/MyFolder/MyFile").
FName GetInvariantPath () Get the complete invariant path that uniquely identifies this item within its owner data source (eg, "/MyRoot/MyFolder/MyFile").
EContentBrow... GetItemCategory () Get the flags denoting the item category information for this item instance.
EContentBrow... GetItemFlags () Get the flags denoting basic state information for this item instance.
FName GetItemName () Get the leaf-name of this item (eg, "MyFile").
EContentBrow... GetItemTemporaryReason () Get the flags denoting the item temporary reason information for this item instance.
EContentBrow... GetItemType () Get the flags denoting the item type information for this item instance.
UContentBrow... GetOwnerDataSource () Get the pointer to the data source that manages the thing represented by this item.
TSharedPtr< ... GetPayload () Get any data source defined payload data for this item.
FName GetVirtualPath () Get the complete virtual path that uniquely identifies this item within its owner data source (eg, "/All/MyRoot/MyFolder/MyFile").
bool IsDisplayOnlyFolder () Check to see whether this item is a display only folder.
bool IsFile () Check to see whether this item is a file.
bool IsFolder () Check to see whether this item is a folder.
bool IsSupported () Check if the item is representing a supported item The content browser can also display some unsupported asset
bool IsTemporary () Check to see whether this item is temporary.
bool IsValid () Check to see whether this item is valid (is either a folder or a file).

Operators

Type Name Description
bool operator!= ( const FContentBrowserItemData& InO... )  
FContentBrow... operator= ( const FContentBrowserItemData& )  
FContentBrow... operator= ( FContentBrowserItemData&& )  
bool operator== ( const FContentBrowserItemData& InO... ) Comparison support.

See Also

UContentBrowserDataSource.


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library