FContentBrowserItemDataAttributeValue

Type describing the value of an item attribute.

Windows
MacOS
Linux

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

Name Description

Public function

FContentBrowserItemDataAttributeValue()

Default constructor.

Public function

FContentBrowserItemDataAttributeValue

(
    const TCHAR* InStr
)

Construct this attribute value from the given string.

Public function

FContentBrowserItemDataAttributeValue

(
    const FString& InStr
)

Default constructor.

Public function

FContentBrowserItemDataAttributeValue

(
    FString&& InStr
)

Default constructor.

Public function

FContentBrowserItemDataAttributeValue

(
    const FName InName
)

Construct this attribute value from the given name.

Public function

FContentBrowserItemDataAttributeValue

(
    FText InText
)

Construct this attribute value from the given text.

Public function

FContentBrowserItemDataAttributeValue

(
    const FContentBrowserItemDataAttrib...
)

Copy support.

Public function

FContentBrowserItemDataAttributeValue

Move support.

Functions

Name Description

Public function Const

const FConte...

 

GetMetaData()

Get the meta-data associated with this attribute value.

Public function Const

FName

 

GetValue()

Public function Const

FText

 

GetValue()

Public function Const

ValueAttrTyp...

 

GetValue()

Get this attribute value as the requested type, converting its internal value to the given type if required.

Public function Const

FString

 

GetValue()

Public function Const

FName

 

GetValueName()

Get the internal name value. @note Only valid when ValueType == Name.

Public function Const

const FStrin...

 

GetValueString()

Get the internal string value. @note Only valid when ValueType == String.

Public function Const

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).

Public function Const

FText

 

GetValueText()

Get the internal text value. @note Only valid when ValueType == Name.

Public function Const

EContentBrow...

 

GetValueType()

Get the value denoting what type of internal value is stored within this attribute value.

Public function Const

bool

 

IsValid()

Check to see whether this attribute value is valid (has been set to an internal value).

Public function

void

 

Reset()

Reset this attribute value to its empty default state.

Public function

void

 

SetMetaData

(
    const FContentBrowserItemDataAttrib...
)

Set the meta-data associated with this attribute value.

Public function

void

 

SetMetaData

Set the meta-data associated with this attribute value.

Public function

void

 

SetValue

(
    ValueAttrType InValue
)

Set this attribute value from the given type, converting it to a type we can store internally if required.

Public function

void

 

SetValue

(
    const TCHAR* InStr
)

Set this attribute value from the given type, converting it to a type we can store internally if required.

Public function

void

 

SetValue

(
    const FString& InStr
)

Set this attribute value from the given type, converting it to a type we can store internally if required.

Public function

void

 

SetValue

(
    FString&& InStr
)

Set this attribute value from the given type, converting it to a type we can store internally if required.

Public function

void

 

SetValue

(
    const FName InName
)

Set this attribute value from the given type, converting it to a type we can store internally if required.

Public function

void

 

SetValue

(
    FText InText
)

Set this attribute value from the given type, converting it to a type we can store internally if required.

Operators

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss