Navigation
API > API/Editor > API/Editor/ContentBrowserData
References
| Module | ContentBrowserData |
| Header | /Engine/Source/Editor/ContentBrowserData/Public/ContentBrowserItemData.h |
| Include | #include "ContentBrowserItemData.h" |
Syntax
class FContentBrowserItemDataAttributeValue
Remarks
Type describing the value of an item attribute. Internally this is optimized to store the value as either an FString, FName, or FText.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor. | |||
FContentBrowserItemDataAttributeValue
(
const TCHAR* InStr |
Construct this attribute value from the given string. | ||
FContentBrowserItemDataAttributeValue
(
const FString& InStr |
Default constructor. | ||
FContentBrowserItemDataAttributeValue
(
FString&& InStr |
Default constructor. | ||
FContentBrowserItemDataAttributeValue
(
const FName InName |
Construct this attribute value from the given name. | ||
FContentBrowserItemDataAttributeValue
(
FText InText |
Construct this attribute value from the given text. | ||
| Copy support. | |||
| Move support. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const FContentBrowserItemDataAttributeMetaData & | GetMetaData () |
Get the meta-data associated with this attribute value. | |
| FName | GetValue () |
||
| FText | GetValue () |
||
| ValueAttrType | GetValue () |
Get this attribute value as the requested type, converting its internal value to the given type if required. | |
| FString | GetValue () |
||
| FName | GetValueName () |
Get the internal name value. Only valid when ValueType == Name. | |
| const FString & | Get the internal string value. Only valid when ValueType == String. | ||
| 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). | |
| FText | GetValueText () |
Get the internal text value. Only valid when ValueType == Name. | |
| EContentBrowserItemDataAttributeValueType | GetValueType () |
Get the value denoting what type of internal value is stored within this attribute value. | |
| bool | IsValid () |
Check to see whether this attribute value is valid (has been set to an internal value). | |
| void | Reset () |
Reset this attribute value to its empty default state. | |
| void | SetMetaData
(
const FContentBrowserItemDataAttributeMetaData& InMetaData |
Set the meta-data associated with this attribute value. | |
| void | SetMetaData
(
FContentBrowserItemDataAttributeMetaData&& InMetaData |
Set the meta-data associated with this attribute value. | |
| void | SetValue
(
ValueAttrType InValue |
Set this attribute value from the given type, converting it to a type we can store internally if required. | |
| void | SetValue
(
const TCHAR* InStr |
Set this attribute value from the given type, converting it to a type we can store internally if required. | |
| void | Set this attribute value from the given type, converting it to a type we can store internally if required. | ||
| void | Set this attribute value from the given type, converting it to a type we can store internally if required. | ||
| void | Set this attribute value from the given type, converting it to a type we can store internally if required. | ||
| void | Set this attribute value from the given type, converting it to a type we can store internally if required. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FContentBrowserItemDataAttributeValue & | operator=
(
const FContentBrowserItemDataAttributeValue& |
||
| FContentBrowserItemDataAttributeValue & |