Navigation
API > API/Runtime > API/Runtime/MassEntity > API/Runtime/MassEntity/FMassCommandBuffer
Description
Adds non-shared element types AND shared fragment values to an entity. Per-hash grouping for batching.
| Name | AddElementsWithSharedFragments |
| Type | function |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassCommandBuffer.h |
| Include Path | #include "MassCommandBuffer.h" |
template<typename... TTypes>
void AddElementsWithSharedFragments
(
FMassEntityHandle Entity,
FMassArchetypeSharedFragmentValues && SharedValues
)