Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/StructUtils > API/Runtime/CoreUObject/StructUtils/FInstancedPropertyBag > API/Runtime/CoreUObject/StructUtils/FInstancedPropertyBag/AddContainerProperty
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/StructUtils/PropertyBag.h |
| Include | #include "StructUtils/PropertyBag.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/StructUtils/PropertyBag.cpp |
void AddContainerProperty
(
const FName InName,
const FPropertyBagContainerTypes InContainerTypes,
const EPropertyBagPropertyType InValueType,
UObject * InValueTypeObject
)
Remarks
Adds a new container property to the bag. If property of same name already exists, it will be replaced with the new type.
Parameters
| Name | Description |
|---|---|
| InName | Name of the new property |
| InContainerTypes | List of (optionally nested) containers to create |
| InValueType | Type of the new property |
| InValueTypeObject | Type object (for struct, class, enum) of the new property |