Navigation
API > API/Runtime > API/Runtime/CoreUObject
A reference to a set in FInstancedPropertyBag Contains helper methods to get and set properties. FInstancedPropertyBag Bag; Bag.AddProperties({ { SetName, EPropertyBagContainerType::Set, EPropertyBagPropertyType::Float } });
if (auto FloatSetRes = Bag.GetSetRef(ArrayName); FloatSetRes.IsValid()) { FPropertyBagSetRef& FloatSet = FloatSetRes.GetValue(); FloatSet.AddValueFloat(123.f); }
Note: The set reference is not valid after the layout of the referenced property bag has changed!
| Name | FPropertyBagSetRef |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/StructUtils/PropertyBag.h |
| Include Path | #include "StructUtils/PropertyBag.h" |
Syntax
class FPropertyBagSetRef : private FScriptSetHelper
Inheritance Hierarchy
- FScriptSetHelper → FPropertyBagSetRef
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPropertyBagSetRef
(
const FPropertyBagPropertyDesc& InDesc, |
StructUtils/PropertyBag.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ValueDesc | FPropertyBagPropertyDesc | StructUtils/PropertyBag.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
EPropertyBagResult AddValueBool
(
const bool bInValue |
Add value to set. If value is already present, it will not be added | StructUtils/PropertyBag.h | |
EPropertyBagResult AddValueByte
(
const uint8 InValue |
StructUtils/PropertyBag.h | ||
EPropertyBagResult AddValueClass
(
UClass* InValue |
StructUtils/PropertyBag.h | ||
EPropertyBagResult AddValueDouble
(
const double InValue |
StructUtils/PropertyBag.h | ||
EPropertyBagResult AddValueEnum
(
const int64 InValue, |
StructUtils/PropertyBag.h | ||
EPropertyBagResult AddValueEnum
(
const T InValue |
Adds enum value specified type. | StructUtils/PropertyBag.h | |
EPropertyBagResult AddValueFloat
(
const float InValue |
StructUtils/PropertyBag.h | ||
EPropertyBagResult AddValueInt32
(
const int32 InValue |
StructUtils/PropertyBag.h | ||
EPropertyBagResult AddValueInt64
(
const int64 InValue |
StructUtils/PropertyBag.h | ||
EPropertyBagResult AddValueName
(
const FName InValue |
StructUtils/PropertyBag.h | ||
EPropertyBagResult AddValueObject
(
T* InValue |
Adds object pointer value specified type. | StructUtils/PropertyBag.h | |
EPropertyBagResult AddValueObject
(
UObject* InValue |
StructUtils/PropertyBag.h | ||
EPropertyBagResult AddValueSoftPath
(
const FSoftObjectPath& InValue |
StructUtils/PropertyBag.h | ||
EPropertyBagResult AddValueString
(
const FString& InValue |
StructUtils/PropertyBag.h | ||
EPropertyBagResult AddValueStruct
(
const T& InValue |
Adds struct value specified type. | StructUtils/PropertyBag.h | |
EPropertyBagResult AddValueStruct
(
FConstStructView InValue |
StructUtils/PropertyBag.h | ||
EPropertyBagResult AddValueText
(
const FText& InValue |
StructUtils/PropertyBag.h | ||
EPropertyBagResult AddValueUInt32
(
const uint32 InValue |
StructUtils/PropertyBag.h | ||
EPropertyBagResult AddValueUInt64
(
const uint64 InValue |
StructUtils/PropertyBag.h | ||
TValueOrError< bool, EPropertyBagResult > Contains
(
const T& Value |
Returns a bool specifying if the element was found or not | StructUtils/PropertyBag.h | |
int32 Num() |
Returns number of elements in set. | StructUtils/PropertyBag.h | |
EPropertyBagResult Remove
(
const T& Value |
Removes value from set if found. | StructUtils/PropertyBag.h |