Navigation
API > API/Editor > API/Editor/ContentBrowserData
Representation of a Content Browser item.
FContentBrowserItem is potentially a composite of multiple internal items (eg, combining equivalent folder items from different data sources), and defers back to these internal items to provide its functionality (via the data source that owns each internal item).
| Name | FContentBrowserItem |
| Type | struct |
| Header File | /Engine/Source/Editor/ContentBrowserData/Public/ContentBrowserItem.h |
| Include Path | #include "ContentBrowserItem.h" |
Syntax
USTRUCT (BlueprintType )
struct FContentBrowserItem
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FContentBrowserItem
(
TArrayView< const FContentBrowserItemData > InItems |
ContentBrowserItem.h | ||
FContentBrowserItem
(
const FContentBrowserItemData& InItem |
ContentBrowserItem.h | ||
FContentBrowserItem
(
FContentBrowserItemData&& InItem |
Construct this composite item from the given internal item(s). | ContentBrowserItem.h | |
| Default constructor. | ContentBrowserItem.h | ||
| Move support. | ContentBrowserItem.h | ||
FContentBrowserItem
(
const FContentBrowserItem& |
Copy support. | ContentBrowserItem.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FItemDataArrayView | TArrayView< const FContentBrowserItemData > | ContentBrowserItem.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ItemDataArray | TArray< FContentBrowserItemData, TInlineAllocator< 1 > > | Array of internal items that comprise this composite item. | ContentBrowserItem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Append
(
const FContentBrowserItem& InOther |
Append the given item to this one, asserting if the combination isn't possible. | ContentBrowserItem.h | |
void Append
(
const FContentBrowserItemData& InOther |
Append the given item to this one, asserting if the combination isn't possible. | ContentBrowserItem.h | |
bool AppendItemObjectPath
(
FString& InOutStr |
Attempt to append any object path for this item to the given string. | ContentBrowserItem.h | |
bool AppendItemPackageName
(
FString& InOutStr |
Attempt to append any package name for this item to the given string. | ContentBrowserItem.h | |
bool AppendItemReference
(
FString& InOutStr |
Attempt to append any path references for this item to the given string. | ContentBrowserItem.h | |
| Query whether this item is can be copied, optionally providing error information if it cannot. | ContentBrowserItem.h | ||
bool CanDelete
(
FText* OutErrorMsg |
Query whether this item is can be deleted, optionally providing error information if it cannot. | ContentBrowserItem.h | |
bool CanDuplicate
(
FText* OutErrorMsg |
Query whether this item is can be duplicated, optionally providing error information if it cannot. | ContentBrowserItem.h | |
bool CanEdit
(
FText* OutErrorMsg |
Query whether this item is can be edited, optionally providing error information if it cannot. | ContentBrowserItem.h | |
bool CanModifyItemAssetAccessSpecifier() |
Query the item's ability to modify its EAssetAccessSpecifier. | ContentBrowserItem.h | |
| Query whether this item is can be moved, optionally providing error information if it cannot. | ContentBrowserItem.h | ||
bool CanPreview
(
FText* OutErrorMsg |
Query whether this item is can be previewed, optionally providing error information if it cannot. | ContentBrowserItem.h | |
bool CanRename
(
const FString* InNewName, |
Query whether this item is can be renamed, optionally providing error information if it cannot. | ContentBrowserItem.h | |
| Query whether this item is can be renamed, optionally providing error information if it cannot. | ContentBrowserItem.h | ||
bool CanSave
(
const EContentBrowserItemSaveFlags InSaveFlags, |
Query whether this item is can be saved, optionally providing error information if it cannot. | ContentBrowserItem.h | |
bool CanView
(
FText* OutErrorMsg |
Query whether the given item is can be viewed (a read-only asset editor), optionally providing error information if it cannot. | ContentBrowserItem.h | |
bool Copy
(
const FName InDestPath |
Attempt to copy this item to the given virtual path. | ContentBrowserItem.h | |
bool Delete() |
Attempt to delete this item. | ContentBrowserItem.h | |
| Attempt to begin the process of asynchronously duplicating this item, populating a temporary item that can be finalized or canceled by the user. | ContentBrowserItem.h | ||
bool Edit() |
Attempt to open this item for editing. | ContentBrowserItem.h | |
FText GetDisplayName() |
Get the user-facing name of this item (eg, "MyFile"). | ContentBrowserItem.h | |
FItemDataArrayView GetInternalItems() |
Get the array of internal items that comprise this composite item. | ContentBrowserItem.h | |
FName GetInternalPath() |
Gets the internal path if it has one (eg,. "/Game"). | ContentBrowserItem.h | |
FName GetInvariantPath() |
Gets the path that will not change based on toggling "Show All Folder", "Organize Folders" or other rules (eg,. "/Plugins"). | ContentBrowserItem.h | |
bool GetItemAssetAccessSpecifier
(
EAssetAccessSpecifier& OutAssetAccessSpecifier |
Query the EAssetAccessSpecifier of the item. | ContentBrowserItem.h | |
FContentBrowserItemDataAttributeValue GetItemAttribute
(
const FName InAttributeKey, |
Query the value of the given attribute on this item. | ContentBrowserItem.h | |
FContentBrowserItemDataAttributeValues GetItemAttributes
(
const bool InIncludeMetaData |
Query the values of all attributes on this item. | ContentBrowserItem.h | |
| Get the flags denoting the item category information for this item instance. | ContentBrowserItem.h | ||
EContentBrowserItemFlags GetItemFlags() |
Get the flags denoting basic state information for this item instance. | ContentBrowserItem.h | |
FName GetItemName() |
Get the leaf-name of this item (eg, "MyFile"). | ContentBrowserItem.h | |
FContentBrowserItemPath GetItemPath() |
Creates a ContentBrowserItemPath, potentially looking up internal paths. | ContentBrowserItem.h | |
bool GetItemPhysicalPath
(
FString& OutDiskPath |
Query the physical (on-disk) path of this item. | ContentBrowserItem.h | |
| Get the flags denoting the item temporary reason information for this item instance. | ContentBrowserItem.h | ||
| Get the flags denoting the item type information for this item instance. | ContentBrowserItem.h | ||
const FContentBrowserItemData * GetPrimaryInternalItem() |
Get the primary internal item from this composite item, if any. | ContentBrowserItem.h | |
FName GetVirtualPath() |
Get the complete virtual path that uniquely identifies this item within its owner data source (eg, "/MyRoot/MyFolder/MyFile"). | ContentBrowserItem.h | |
bool IsDirty() |
Query whether this item is considered dirty (ie, has unsaved changes). | ContentBrowserItem.h | |
bool IsDisplayOnlyFolder () |
Check to see whether this item is a display only folder. | ContentBrowserItem.h | |
bool IsFile () |
Check to see whether this item is a file. | ContentBrowserItem.h | |
bool IsFolder () |
Check to see whether this item is a folder. | ContentBrowserItem.h | |
bool IsInPlugin () |
Check to see whether this item is in a plugin. | ContentBrowserItem.h | |
bool IsSupported () |
Check if the item is representing a supported item The content browser can also display some unsupported asset | ContentBrowserItem.h | |
bool IsTemporary () |
Check to see whether this item is temporary. | ContentBrowserItem.h | |
bool IsValid() |
Check to see whether this item is valid (contains at least one internal item). | ContentBrowserItem.h | |
bool Legacy_TryGetAssetData
(
FAssetData& OutAssetData |
Attempt to retrieve the asset data associated with this item. | ContentBrowserItem.h | |
bool Legacy_TryGetPackagePath
(
FName& OutPackagePath |
Attempt to retrieve the package path associated with this item. | ContentBrowserItem.h | |
bool Move
(
const FName InDestPath |
Attempt to move this item to the given virtual path. | ContentBrowserItem.h | |
bool Preview() |
Attempt to preview this item. | ContentBrowserItem.h | |
void Remove
(
const FContentBrowserItemData& InOther |
Remove the given item from this one, asserting if the removal wasn't possible. | ContentBrowserItem.h | |
void Remove
(
const FContentBrowserItem& InOther |
Remove the given item from this one, asserting if the removal wasn't possible. | ContentBrowserItem.h | |
bool Rename
(
const FString& InNewName, |
Attempt to rename this item. | ContentBrowserItem.h | |
bool Save
(
const EContentBrowserItemSaveFlags InSaveFlags |
Attempt to save this item. | ContentBrowserItem.h | |
bool TryAppend
(
const FContentBrowserItem& InOther, |
Attempt to append the given item to this one, providing error information if the combination isn't possible. | ContentBrowserItem.h | |
bool TryAppend
(
const FContentBrowserItemData& InOther, |
Attempt to append the given item to this one, providing error information if the combination isn't possible. | ContentBrowserItem.h | |
bool TryGetCollectionId
(
FSoftObjectPath& OutCollectionId |
Attempt to retrieve the identifier that should be used when storing a reference to this item within a collection. | ContentBrowserItem.h | |
bool TryRemove
(
const FContentBrowserItem& InOther, |
Attempt to remove the given item from this one, providing error information if the removal wasn't possible. | ContentBrowserItem.h | |
bool TryRemove
(
const FContentBrowserItemData& InOther, |
Attempt to remove the given item from this one, providing error information if the removal wasn't possible. | ContentBrowserItem.h | |
FContentBrowserItemData TryRemove
(
const FContentBrowserMinimalItemData& InKey, |
Attempt to remove an item matching the given minimal representation from this one, providing error information if the removal wasn't possible. | ContentBrowserItem.h | |
bool UpdateThumbnail
(
FAssetThumbnail& InThumbnail |
Attempt to update the thumbnail associated with this item. | ContentBrowserItem.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| ContentBrowserItem.h | |||
FContentBrowserItem & operator=
(
const FContentBrowserItem& |
ContentBrowserItem.h |