FContentBrowserItemDataAttributeValue

Type describing the value of an item attribute.

Unreal Engine C++ API Reference > 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
  FContentBrowserItemDataAttributeValue () 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.
  FContentBrowserItemDataAttributeValue ( const FContentBrowserItemDataAttrib... ) Copy support.
  FContentBrowserItemDataAttributeValue ( FContentBrowserItemDataAttributeVal... ) Move support.

Functions

Type Name Description
const FConte... GetMetaData () Get the meta-data associated with this attribute value.
FName GetValue ()  
FText GetValue ()  
ValueAttrTyp... 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 FStrin... GetValueString () 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.
EContentBrow... 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 FContentBrowserItemDataAttrib... ) Set the meta-data associated with this attribute value.
void SetMetaData ( FContentBrowserItemDataAttributeMet... ) 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 SetValue ( const FString& InStr ) Set this attribute value from the given type, converting it to a type we can store internally if required.
void SetValue ( FString&& InStr ) Set this attribute value from the given type, converting it to a type we can store internally if required.
void SetValue ( const FName InName ) Set this attribute value from the given type, converting it to a type we can store internally if required.
void SetValue ( FText InText ) Set this attribute value from the given type, converting it to a type we can store internally if required.

Operators


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library