FContentBrowserItemTemporaryContext

Context for asynchronous item creation (for new items or duplicating existing ones).

Unreal Engine C++ API Reference > Editor > ContentBrowserData

References

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

Syntax

class FContentBrowserItemTemporaryContext  

Remarks

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.

Functions

Type Name Description
void AppendContext ( FContentBrowserItemDataTemporaryCon... ) Append the given context to this one.
FContentBrow... FinalizeItem ( const FString& InProposedName, FText* OutErrorMsg ) Invoke the delegate used to finalize the creation of the temporary item, and return the real item.
const FConte... GetItem () Get the data representing the temporary item instance.
bool IsValid () Check to see whether this context is valid (has been set to a temporary item).
bool ValidateItem ( const FString& InProposedName, FText* OutErrorMsg ) Invoke the delegate used to validate that the proposed item name is valid.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library