Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/StructUtils
Inheritance Hierarchy
- FScriptArrayHelper
- FPropertyBagArrayRef
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/StructUtils/PropertyBag.h |
| Include | #include "StructUtils/PropertyBag.h" |
Syntax
class FPropertyBagArrayRef : public FScriptArrayHelper
Remarks
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!
Constructors
| Type | Name | Description | |
|---|---|---|---|
FPropertyBagArrayRef
(
const FPropertyBagPropertyDesc& InDesc, |