![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <PropertyBag.h>
Inheritance diagram for FPropertyBagSetRef: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!
|
inline |
| EPropertyBagResult FPropertyBagSetRef::AddValueBool | ( | const bool | bInValue | ) |
Add value to set. If value is already present, it will not be added
| EPropertyBagResult FPropertyBagSetRef::AddValueByte | ( | const uint8 | InValue | ) |
| EPropertyBagResult FPropertyBagSetRef::AddValueClass | ( | UClass * | InValue | ) |
| EPropertyBagResult FPropertyBagSetRef::AddValueDouble | ( | const double | InValue | ) |
| EPropertyBagResult FPropertyBagSetRef::AddValueEnum | ( | const int64 | InValue, |
| const UEnum * | Enum | ||
| ) |
|
inline |
Adds enum value specified type.
| EPropertyBagResult FPropertyBagSetRef::AddValueFloat | ( | const float | InValue | ) |
| EPropertyBagResult FPropertyBagSetRef::AddValueInt32 | ( | const int32 | InValue | ) |
| EPropertyBagResult FPropertyBagSetRef::AddValueInt64 | ( | const int64 | InValue | ) |
| EPropertyBagResult FPropertyBagSetRef::AddValueName | ( | const FName | InValue | ) |
|
inline |
Adds object pointer value specified type.
| EPropertyBagResult FPropertyBagSetRef::AddValueObject | ( | UObject * | InValue | ) |
| EPropertyBagResult FPropertyBagSetRef::AddValueSoftPath | ( | const FSoftObjectPath & | InValue | ) |
| EPropertyBagResult FPropertyBagSetRef::AddValueString | ( | const FString & | InValue | ) |
|
inline |
Adds struct value specified type.
| EPropertyBagResult FPropertyBagSetRef::AddValueStruct | ( | FConstStructView | InValue | ) |
| EPropertyBagResult FPropertyBagSetRef::AddValueText | ( | const FText & | InValue | ) |
| EPropertyBagResult FPropertyBagSetRef::AddValueUInt32 | ( | const uint32 | InValue | ) |
| EPropertyBagResult FPropertyBagSetRef::AddValueUInt64 | ( | const uint64 | InValue | ) |
|
inline |
Returns a bool specifying if the element was found or not
|
inline |
Returns number of elements in set.
|
inline |
Removes value from set if found.