Navigation
API > API/Editor > API/Editor/ContentBrowserData
Type describing the value of an item attribute. Internally this is optimized to store the value as either an FString, FName, or FText.
| Name | FContentBrowserItemDataAttributeValue |
| Type | class |
| Header File | /Engine/Source/Editor/ContentBrowserData/Public/ContentBrowserItemData.h |
| Include Path | #include "ContentBrowserItemData.h" |
Syntax
class FContentBrowserItemDataAttributeValue
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Copy support. | ContentBrowserItemData.h | ||
| Move support. | ContentBrowserItemData.h | ||
FContentBrowserItemDataAttributeValue
(
FText InText |
Construct this attribute value from the given text. | ContentBrowserItemData.h | |
FContentBrowserItemDataAttributeValue
(
const FName InName |
Construct this attribute value from the given name. | ContentBrowserItemData.h | |
FContentBrowserItemDataAttributeValue
(
FString&& InStr |
ContentBrowserItemData.h | ||
FContentBrowserItemDataAttributeValue
(
const FString& InStr |
ContentBrowserItemData.h | ||
FContentBrowserItemDataAttributeValue
(
const TCHAR* InStr |
Construct this attribute value from the given string. | ContentBrowserItemData.h | |
| Default constructor. | ContentBrowserItemData.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MetaData | TSharedPtr< const FContentBrowserItemDataAttributeMetaData > | Meta-data associated with this attribute value | ContentBrowserItemData.h | |
| NameValue | FName | Internal name value | ContentBrowserItemData.h | |
| StrValue | FString | Internal string value | ContentBrowserItemData.h | |
| TextValue | FText | Internal text value | ContentBrowserItemData.h | |
| ValueType | EContentBrowserItemDataAttributeValueType | Value denoting what type of internal value is stored within this attribute value | ContentBrowserItemData.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FContentBrowserItemDataAttributeMetaData & GetMetaData() |
Get the meta-data associated with this attribute value. | ContentBrowserItemData.h | |
| ContentBrowserItemData.h | |||
| ContentBrowserItemData.h | |||
ValueAttrType GetValue () |
Get this attribute value as the requested type, converting its internal value to the given type if required. | ContentBrowserItemData.h | |
FString GetValue () |
ContentBrowserItemData.h | ||
FName GetValueName() |
Get the internal name value. Only valid when ValueType == Name. | ContentBrowserItemData.h | |
const FString & GetValueString() |
Get the internal string value. Only valid when ValueType == String. | ContentBrowserItemData.h | |
FStringView GetValueStringView
(
FStringBuilderBase& ScratchBuffer |
Get this attribute value as a string view, converting its internal value using the scratch buffer if required (if ValueType == Name). | ContentBrowserItemData.h | |
FText GetValueText() |
Get the internal text value. Only valid when ValueType == Name. | ContentBrowserItemData.h | |
EContentBrowserItemDataAttributeValueType GetValueType() |
Get the value denoting what type of internal value is stored within this attribute value. | ContentBrowserItemData.h | |
bool IsValid() |
Check to see whether this attribute value is valid (has been set to an internal value). | ContentBrowserItemData.h | |
void Reset() |
Reset this attribute value to its empty default state. | ContentBrowserItemData.h | |
void SetMetaData
(
const FContentBrowserItemDataAttributeMetaData& InMetaData |
Set the meta-data associated with this attribute value. | ContentBrowserItemData.h | |
void SetMetaData
(
FContentBrowserItemDataAttributeMetaData&& InMetaData |
ContentBrowserItemData.h | ||
void SetValue
(
ValueAttrType InValue |
Set this attribute value from the given type, converting it to a type we can store internally if required. | ContentBrowserItemData.h | |
void SetValue
(
const TCHAR* InStr |
ContentBrowserItemData.h | ||
void SetValue
(
const FString& InStr |
ContentBrowserItemData.h | ||
void SetValue
(
FString&& InStr |
ContentBrowserItemData.h | ||
| ContentBrowserItemData.h | |||
| ContentBrowserItemData.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| ContentBrowserItemData.h | |||
| ContentBrowserItemData.h |