Navigation
API > API/Runtime > API/Runtime/MassEntity > API/Runtime/MassEntity/FMassCommandBuffer
Description
Adds element types with per-entity values AND shared fragment values to an entity in a single move. Per-hash grouping. TElements accepts FMassFragment types (per-entity values required) and FMassTag types including sparse (tags participate in composition but are excluded from the value payload due to zero-size storage).
| Name | AddFragmentInstancesWithSharedFragments |
| Type | function |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassCommandBuffer.h |
| Include Path | #include "MassCommandBuffer.h" |
template<typename... TElements>
void AddFragmentInstancesWithSharedFragments
(
FMassEntityHandle Entity,
FMassArchetypeSharedFragmentValues && SharedValues,
TElements &&... InElements
)