Navigation
API > API/Plugins > API/Plugins/StructUtils
Inheritance Hierarchy
- FScriptArrayHelper
- FPropertyBagArrayRef
References
| Module | StructUtils |
| Header | /Engine/Plugins/Experimental/StructUtils/Source/StructUtils/Public/PropertyBag.h |
| Include | #include "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, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TValueOrError< FPropertyBagArrayRef, EPropertyBagResult > | GetMutableNestedArrayRef
(
const int32 Index |
Returns helper class to modify and access a nested array (mutable version). | |
| TValueOrError< const FPropertyBagArrayRef, EPropertyBagResult > | GetNestedArrayRef
(
const int32 Index |
Returns helper class to access a nested array (const version). | |
| TValueOrError< bool, EPropertyBagResult > | GetValueBool
(
const int32 Index |
Getters Numeric types (bool, int32, int64, float, double) support type conversion. | |
| TValueOrError< uint8, EPropertyBagResult > | GetValueByte
(
const int32 Index |
||
| TValueOrError< UClass *, EPropertyBagResult > | GetValueClass
(
const int32 Index |
||
| TValueOrError< double, EPropertyBagResult > | GetValueDouble
(
const int32 Index |
||
| TValueOrError< uint8, EPropertyBagResult > | GetValueEnum
(
const int32 Index, |
||
| TValueOrError< T, EPropertyBagResult > | GetValueEnum
(
const int32 Index |
||
| TValueOrError< float, EPropertyBagResult > | GetValueFloat
(
const int32 Index |
||
| TValueOrError< int32, EPropertyBagResult > | GetValueInt32
(
const int32 Index |
||
| TValueOrError< int64, EPropertyBagResult > | GetValueInt64
(
const int32 Index |
||
| TValueOrError< FName, EPropertyBagResult > | GetValueName
(
const int32 Index |
||
| TValueOrError< T *, EPropertyBagResult > | GetValueObject
(
const int32 Index |
||
| TValueOrError< UObject *, EPropertyBagResult > | GetValueObject
(
const int32 Index, |
||
| TValueOrError< FSoftObjectPath, EPropertyBagResult > | GetValueSoftPath
(
const int32 Index |
||
| TValueOrError< FString, EPropertyBagResult > | GetValueString
(
const int32 Index |
||
| TValueOrError< FStructView, EPropertyBagResult > | GetValueStruct
(
const int32 Index, |
||
| TValueOrError< T *, EPropertyBagResult > | GetValueStruct
(
const int32 Index |
||
| TValueOrError< FText, EPropertyBagResult > | GetValueText
(
const int32 Index |
||
| EPropertyBagResult | SetValueBool
(
const int32 Index, |
Value Setters. | |
| EPropertyBagResult | SetValueByte
(
const int32 Index, |
||
| EPropertyBagResult | SetValueClass
(
const int32 Index, |
||
| EPropertyBagResult | SetValueDouble
(
const int32 Index, |
||
| EPropertyBagResult | SetValueEnum
(
const int32 Index, |
||
| EPropertyBagResult | SetValueEnum
(
const int32 Index, |
Sets enum value specified type. | |
| EPropertyBagResult | SetValueFloat
(
const int32 Index, |
||
| EPropertyBagResult | SetValueInt32
(
const int32 Index, |
||
| EPropertyBagResult | SetValueInt64
(
const int32 Index, |
||
| EPropertyBagResult | SetValueName
(
const int32 Index, |
||
| EPropertyBagResult | SetValueObject
(
const int32 Index, |
||
| EPropertyBagResult | SetValueObject
(
const int32 Index, |
Sets object pointer value specified type. | |
| EPropertyBagResult | SetValueSoftPath
(
const int32 Index, |
||
| EPropertyBagResult | SetValueString
(
const int32 Index, |
||
| EPropertyBagResult | SetValueStruct
(
const int32 Index, |
||
| EPropertyBagResult | SetValueStruct
(
const int32 Index, |
Sets struct value specified type. | |
| EPropertyBagResult | SetValueText
(
const int32 Index, |