Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FInstancedPropertyBag
Description
Changes the type of this bag to the InNewBagInstance, and migrates existing values over if marked as overridden in the OverriddenPropertyIDs. Properties that does not exist in this bag, or are not overridden, will get values from InNewBagInstance. The properties are matched between the bags based on the property ID.
| Name | MigrateToNewBagInstanceWithOverrides |
| 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 |
void MigrateToNewBagInstanceWithOverrides
(
const FInstancedPropertyBag & InNewBagInstance,
TConstArrayView< FGuid > OverriddenPropertyIDs
)
Parameters
| Name | Remarks |
|---|---|
| InNewBagInstance | New bag composition and values used for new properties. |
| OverriddenPropertyIDs | Array if property IDs which should be copied over to the new instance. |