Navigation
API > API/Runtime > API/Runtime/CoreUObject
A reference to an array in FInstancedPropertyBag Allows to modify the array via the FScriptArrayHelper API, and contains helper methods to get and set properties. FInstancedPropertyBag Bag; Bag.AddProperties({ { ArrayName, EPropertyBagContainerType::Array, EPropertyBagPropertyType::Float } });
if (auto FloatArrayRes = Bag.GetArrayRef(ArrayName); FloatArrayRes.IsValid()) { FPropertyBagArrayRef& FloatArray = FloatArrayRes.GetValue(); const int32 NewIndex = FloatArray.AddValue(); FloatArray.SetValueFloat(NewIndex, 123.0f); }
Note: The array reference is not valid after the layout of the referenced property bag has changed!
| Name | FPropertyBagArrayRef |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/StructUtils/PropertyBag.h |
| Include Path | #include "StructUtils/PropertyBag.h" |
Syntax
class FPropertyBagArrayRef : public FScriptArrayHelper
Inheritance Hierarchy
- FScriptArrayHelper → FPropertyBagArrayRef
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPropertyBagArrayRef
(
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 |
|---|---|---|---|
TValueOrError< FPropertyBagArrayRef, EPropertyBagResult > GetMutableNestedArrayRef
(
const int32 Index |
Returns helper class to modify and access a nested array (mutable version). | StructUtils/PropertyBag.h | |
TValueOrError< const FPropertyBagArrayRef, EPropertyBagResult > GetNestedArrayRef
(
const int32 Index |
Returns helper class to access a nested array (const version). | StructUtils/PropertyBag.h | |
TValueOrError< bool, EPropertyBagResult > GetValueBool
(
const int32 Index |
Getters Numeric types (bool, (u)int32, (u)int64, float, double) support type conversion. | StructUtils/PropertyBag.h | |
TValueOrError< uint8, EPropertyBagResult > GetValueByte
(
const int32 Index |
StructUtils/PropertyBag.h | ||
TValueOrError< UClass *, EPropertyBagResult > GetValueClass
(
const int32 Index |
StructUtils/PropertyBag.h | ||
TValueOrError< double, EPropertyBagResult > GetValueDouble
(
const int32 Index |
StructUtils/PropertyBag.h | ||
TValueOrError< uint8, EPropertyBagResult > GetValueEnum
(
const int32 Index, |
StructUtils/PropertyBag.h | ||
TValueOrError< T, EPropertyBagResult > GetValueEnum
(
const int32 Index |
StructUtils/PropertyBag.h | ||
TValueOrError< float, EPropertyBagResult > GetValueFloat
(
const int32 Index |
StructUtils/PropertyBag.h | ||
TValueOrError< int32, EPropertyBagResult > GetValueInt32
(
const int32 Index |
StructUtils/PropertyBag.h | ||
TValueOrError< int64, EPropertyBagResult > GetValueInt64
(
const int32 Index |
StructUtils/PropertyBag.h | ||
TValueOrError< FName, EPropertyBagResult > GetValueName
(
const int32 Index |
StructUtils/PropertyBag.h | ||
TValueOrError< UObject *, EPropertyBagResult > GetValueObject
(
const int32 Index, |
StructUtils/PropertyBag.h | ||
TValueOrError< T *, EPropertyBagResult > GetValueObject
(
const int32 Index |
StructUtils/PropertyBag.h | ||
TValueOrError< FSoftObjectPath, EPropertyBagResult > GetValueSoftPath
(
const int32 Index |
StructUtils/PropertyBag.h | ||
TValueOrError< FString, EPropertyBagResult > GetValueString
(
const int32 Index |
StructUtils/PropertyBag.h | ||
TValueOrError< FStructView, EPropertyBagResult > GetValueStruct
(
const int32 Index, |
StructUtils/PropertyBag.h | ||
TValueOrError< T *, EPropertyBagResult > GetValueStruct
(
const int32 Index |
StructUtils/PropertyBag.h | ||
TValueOrError< FText, EPropertyBagResult > GetValueText
(
const int32 Index |
StructUtils/PropertyBag.h | ||
TValueOrError< uint32, EPropertyBagResult > GetValueUInt32
(
const int32 Index |
StructUtils/PropertyBag.h | ||
TValueOrError< uint64, EPropertyBagResult > GetValueUInt64
(
const int32 Index |
StructUtils/PropertyBag.h | ||
EPropertyBagResult SetValueBool
(
const int32 Index, |
Value Setters. | StructUtils/PropertyBag.h | |
EPropertyBagResult SetValueByte
(
const int32 Index, |
StructUtils/PropertyBag.h | ||
EPropertyBagResult SetValueClass
(
const int32 Index, |
StructUtils/PropertyBag.h | ||
EPropertyBagResult SetValueDouble
(
const int32 Index, |
StructUtils/PropertyBag.h | ||
EPropertyBagResult SetValueEnum
(
const int32 Index, |
Sets enum value specified type. | StructUtils/PropertyBag.h | |
EPropertyBagResult SetValueEnum
(
const int32 Index, |
StructUtils/PropertyBag.h | ||
EPropertyBagResult SetValueFloat
(
const int32 Index, |
StructUtils/PropertyBag.h | ||
EPropertyBagResult SetValueInt32
(
const int32 Index, |
StructUtils/PropertyBag.h | ||
EPropertyBagResult SetValueInt64
(
const int32 Index, |
StructUtils/PropertyBag.h | ||
EPropertyBagResult SetValueName
(
const int32 Index, |
StructUtils/PropertyBag.h | ||
EPropertyBagResult SetValueObject
(
const int32 Index, |
StructUtils/PropertyBag.h | ||
EPropertyBagResult SetValueObject
(
const int32 Index, |
Sets object pointer value specified type. | StructUtils/PropertyBag.h | |
EPropertyBagResult SetValueSoftPath
(
const int32 Index, |
StructUtils/PropertyBag.h | ||
EPropertyBagResult SetValueSoftPath
(
const int32 Index, |
StructUtils/PropertyBag.h | ||
EPropertyBagResult SetValueString
(
const int32 Index, |
StructUtils/PropertyBag.h | ||
EPropertyBagResult SetValueStruct
(
const int32 Index, |
StructUtils/PropertyBag.h | ||
EPropertyBagResult SetValueStruct
(
const int32 Index, |
Sets struct value specified type. | StructUtils/PropertyBag.h | |
EPropertyBagResult SetValueText
(
const int32 Index, |
StructUtils/PropertyBag.h | ||
EPropertyBagResult SetValueUInt32
(
const int32 Index, |
StructUtils/PropertyBag.h | ||
EPropertyBagResult SetValueUInt64
(
const int32 Index, |
StructUtils/PropertyBag.h |