Navigation
API > API/Editor > API/Editor/ContentBrowserData
Context for asynchronous item creation (for new items or duplicating existing ones). Data sources will return one of these (hosting a temporary item with any required context) when they want to begin the creation or duplication of an item item. UI involved in this creation flow should call ValidateItem for any name changes, as well as before calling FinalizeItem. Once finalized the temporary item should be replaced with the real one.
| Name | FContentBrowserItemTemporaryContext |
| Type | class |
| Header File | /Engine/Source/Editor/ContentBrowserData/Public/ContentBrowserItem.h |
| Include Path | #include "ContentBrowserItem.h" |
Syntax
class FContentBrowserItemTemporaryContext
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Item | FContentBrowserItem | Data representing the temporary item instance. | ContentBrowserItem.h | |
| ItemDataContextArray | TArray< FContentBrowserItemDataTemporaryContext, TInlineAllocator< 1 > > | Array of internal contexts that comprise this composite context. | ContentBrowserItem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AppendContext
(
FContentBrowserItemDataTemporaryContext&& InContext |
Append the given context to this one. | ContentBrowserItem.h | |
FContentBrowserItem FinalizeItem
(
const FString& InProposedName, |
Invoke the delegate used to finalize the creation of the temporary item, and return the real item. | ContentBrowserItem.h | |
const FContentBrowserItem & GetItem() |
Get the data representing the temporary item instance. | ContentBrowserItem.h | |
bool IsValid() |
Check to see whether this context is valid (has been set to a temporary item). | ContentBrowserItem.h | |
bool ValidateItem
(
const FString& InProposedName, |
Invoke the delegate used to validate that the proposed item name is valid. | ContentBrowserItem.h |