Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FInstancedPropertyBag
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
EPropertyBagAlterationResult AddProperty
(
const FName InName, |
Adds a new property to the bag. | StructUtils/PropertyBag.h | |
EPropertyBagAlterationResult AddProperty
(
const FName InName, |
Adds a new property to the bag. | StructUtils/PropertyBag.h |
AddProperty(const FName, const FProperty *, bool)
Description
Adds a new property to the bag. Property type duplicated from source property to. If property of same name already exists, it will be replaced with the new type.
| Name | AddProperty |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/StructUtils/PropertyBag.h |
| Include Path | #include "StructUtils/PropertyBag.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/StructUtils/PropertyBag.cpp |
EPropertyBagAlterationResult AddProperty
(
const FName InName,
const FProperty * InSourceProperty,
bool bOverwrite
)
The result of the alteration.
Parameters
| Name | Remarks |
|---|---|
| InName | Name of the property to add |
| InSourceProperty | The property to add |
| bOverwrite | Overwrite the property if it already exists. |
AddProperty(const FName, const EPropertyBagPropertyType, const UObject *, bool)
Description
Adds a new property to the bag. If property of same name already exists, it will be replaced with the new type. Numeric property values will be converted if possible, when a property's type changes.
| Name | AddProperty |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/StructUtils/PropertyBag.h |
| Include Path | #include "StructUtils/PropertyBag.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/StructUtils/PropertyBag.cpp |
EPropertyBagAlterationResult AddProperty
(
const FName InName,
const EPropertyBagPropertyType InValueType,
const UObject * InValueTypeObject,
bool bOverwrite
)
The result of the alteration.
Parameters
| Name | Remarks |
|---|---|
| InName | Name of the new property |
| InValueType | Type of the new property |
| InValueTypeObject | Type object (for struct, class, enum) of the new property |
| bOverwrite | Overwrite the property if it already exists. |