Navigation
API > API/Plugins > API/Plugins/InstancedActors > API/Plugins/InstancedActors/UInstancedActorsComponent
Description
If HasMassEntity(), adds or updates existing FragmentTypes for this Instanced Actor's Mass entity, then requests a persistent data resave once the fragments are updated. Performed deferred using FMassCommandBuffer to safely add fragments, as Mass may currently be performing parallel processing. Note: The fragments are not automatically persisted (yet), it is assumed some other mechanism will read the new fragment values during the persistence resave, e.g: SerializeInstancePersistenceData
| Name | AddOrUpdatePersistentFragmentsDeferred |
| Type | function |
| Header File | /Engine/Plugins/Runtime/InstancedActors/Source/InstancedActors/Public/InstancedActorsComponent.h |
| Include Path | #include "InstancedActorsComponent.h" |
template<typename... FragmentTypes>
void AddOrUpdatePersistentFragmentsDeferred
(
FragmentTypes &&... NewFragments
)