|
| | FPropertyBagArrayRef (const FPropertyBagPropertyDesc &InDesc, const void *InArray) |
| |
| UE_API TValueOrError< bool, EPropertyBagResult > | GetValueBool (const int32 Index) const |
| |
| UE_API TValueOrError< uint8, EPropertyBagResult > | GetValueByte (const int32 Index) const |
| |
| UE_API TValueOrError< int32, EPropertyBagResult > | GetValueInt32 (const int32 Index) const |
| |
| UE_API TValueOrError< uint32, EPropertyBagResult > | GetValueUInt32 (const int32 Index) const |
| |
| UE_API TValueOrError< int64, EPropertyBagResult > | GetValueInt64 (const int32 Index) const |
| |
| UE_API TValueOrError< uint64, EPropertyBagResult > | GetValueUInt64 (const int32 Index) const |
| |
| UE_API TValueOrError< float, EPropertyBagResult > | GetValueFloat (const int32 Index) const |
| |
| UE_API TValueOrError< double, EPropertyBagResult > | GetValueDouble (const int32 Index) const |
| |
| UE_API TValueOrError< FName, EPropertyBagResult > | GetValueName (const int32 Index) const |
| |
| UE_API TValueOrError< FString, EPropertyBagResult > | GetValueString (const int32 Index) const |
| |
| UE_API TValueOrError< FText, EPropertyBagResult > | GetValueText (const int32 Index) const |
| |
| UE_API TValueOrError< uint8, EPropertyBagResult > | GetValueEnum (const int32 Index, const UEnum *RequestedEnum) const |
| |
| UE_API TValueOrError< FStructView, EPropertyBagResult > | GetValueStruct (const int32 Index, const UScriptStruct *RequestedStruct=nullptr) const |
| |
| UE_API TValueOrError< UObject *, EPropertyBagResult > | GetValueObject (const int32 Index, const UClass *RequestedClass=nullptr) const |
| |
| UE_API TValueOrError< UClass *, EPropertyBagResult > | GetValueClass (const int32 Index) const |
| |
| UE_API TValueOrError< FSoftObjectPath, EPropertyBagResult > | GetValueSoftPath (const int32 Index) const |
| |
| template<typename T > |
| TValueOrError< T, EPropertyBagResult > | GetValueEnum (const int32 Index) const |
| |
| template<typename T > |
| TValueOrError< T *, EPropertyBagResult > | GetValueStruct (const int32 Index) const |
| |
| template<typename T > |
| TValueOrError< T *, EPropertyBagResult > | GetValueObject (const int32 Index) const |
| |
| UE_API TValueOrError< FPropertyBagArrayRef, EPropertyBagResult > | GetMutableNestedArrayRef (const int32 Index=0) const |
| |
| UE_API TValueOrError< const FPropertyBagArrayRef, EPropertyBagResult > | GetNestedArrayRef (const int32 Index=0) const |
| |
| UE_API EPropertyBagResult | SetValueBool (const int32 Index, const bool bInValue) |
| |
| UE_API EPropertyBagResult | SetValueByte (const int32 Index, const uint8 InValue) |
| |
| UE_API EPropertyBagResult | SetValueInt32 (const int32 Index, const int32 InValue) |
| |
| UE_API EPropertyBagResult | SetValueUInt32 (const int32 Index, const uint32 InValue) |
| |
| UE_API EPropertyBagResult | SetValueInt64 (const int32 Index, const int64 InValue) |
| |
| UE_API EPropertyBagResult | SetValueUInt64 (const int32 Index, const uint64 InValue) |
| |
| UE_API EPropertyBagResult | SetValueFloat (const int32 Index, const float InValue) |
| |
| UE_API EPropertyBagResult | SetValueDouble (const int32 Index, const double InValue) |
| |
| UE_API EPropertyBagResult | SetValueName (const int32 Index, const FName InValue) |
| |
| UE_API EPropertyBagResult | SetValueString (const int32 Index, const FString &InValue) |
| |
| UE_API EPropertyBagResult | SetValueText (const int32 Index, const FText &InValue) |
| |
| UE_API EPropertyBagResult | SetValueEnum (const int32 Index, const uint8 InValue, const UEnum *Enum) |
| |
| UE_API EPropertyBagResult | SetValueStruct (const int32 Index, FConstStructView InValue) |
| |
| UE_API EPropertyBagResult | SetValueObject (const int32 Index, UObject *InValue) |
| |
| UE_API EPropertyBagResult | SetValueClass (const int32 Index, UClass *InValue) |
| |
| UE_API EPropertyBagResult | SetValueSoftPath (const int32 Index, const FSoftObjectPath &InValue) |
| |
| UE_API EPropertyBagResult | SetValueSoftPath (const int32 Index, const UObject *InValue) |
| |
| template<typename T > |
| EPropertyBagResult | SetValueEnum (const int32 Index, const T InValue) |
| |
| template<typename T > |
| EPropertyBagResult | SetValueStruct (const int32 Index, const T &InValue) |
| |
| template<typename T > |
| EPropertyBagResult | SetValueObject (const int32 Index, T *InValue) |
| |
| UE_FORCEINLINE_HINT | FScriptArrayHelper (const FArrayProperty *InProperty, const void *InArray) |
| |
| UE_FORCEINLINE_HINT bool | IsValidIndex (int32 Index) const |
| |
| int32 | Num () const |
| |
| int32 | NumUnchecked () const |
| |
| uint8 * | GetRawPtr (int32 Index=0) |
| |
| UE_FORCEINLINE_HINT uint8 * | GetElementPtr (int32 Index=0) |
| |
| void | EmptyAndAddValues (int32 Count) |
| |
| void | EmptyAndAddUninitializedValues (int32 Count) |
| |
| bool | ExpandForIndex (int32 Index) |
| |
| void | Resize (int32 Count) |
| |
| int32 | AddValues (int32 Count) |
| |
| UE_FORCEINLINE_HINT int32 | AddValue () |
| |
| int32 | AddUninitializedValues (int32 Count) |
| |
| UE_FORCEINLINE_HINT int32 | AddUninitializedValue () |
| |
| void | InsertValues (int32 Index, int32 Count=1) |
| |
| void | EmptyValues (int32 Slack=0) |
| |
| void | RemoveValues (int32 Index, int32 Count=1) |
| |
| void | ClearValues (int32 Index, int32 Count=1) |
| |
| void | SwapValues (int32 A, int32 B) |
| |
| void | MoveAssign (void *InOtherArray) |
| |
| void | CountBytes (FArchive &Ar) const |
| |
| void | DestroyContainer_Unsafe () |
| |
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!