Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FInstancedPropertyBag
Description
Adds a new map property to the bag. If property of same name already exists, it will be replaced with the new type.
| Name | AddMapProperty |
| 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 AddMapProperty
(
const FName InName,
const EPropertyBagPropertyType InKeyType,
const EPropertyBagPropertyType InValueType,
const UObject * InKeyTypeObject,
const UObject * InValueTypeObject,
const EPropertyBagContainerType InNestedContainerType,
bool bOverwrite
)
The result of the alteration.
Parameters
| Name | Remarks |
|---|---|
| InName | Name of the new property |
| InKeyType | Type of the new property's key |
| InValueType | Type of the new property |
| InKeyTypeObject | Type object (for struct, class, enum) of the new property's key |
| InValueTypeObject | Type object (for struct, class, enum) of the new property |
| InNestedContainerType | Type of (optional) nested container to create |
| bOverwrite | Overwrite the property if it already exists. |