Navigation
API > API/Plugins > API/Plugins/Mover > API/Plugins/Mover/FMoverDataCollection
Description
Adds data to the collection by copying over an existing struct or cloning the provided struct if no matching struct exists. This is different than AddOrOverwriteData because the instance isn't touched, avoiding memory allocation & array changing if a matching struct exists.
| Name | AddDataByCopy |
| Type | function |
| Header File | /Engine/Plugins/Experimental/Mover/Source/Mover/Public/MoverTypes.h |
| Include Path | #include "MoverTypes.h" |
| Source | /Engine/Plugins/Experimental/Mover/Source/Mover/Private/MoverTypes.cpp |
void AddDataByCopy
(
const FMoverDataStructBase * DataInstanceToCopy
)