Navigation
API > API/Runtime > API/Runtime/MassEntity > API/Runtime/MassEntity/FMassEntityManager
Description
Adds elements indicated by InOutDescriptor to the entity indicated by EntityHandle. The function also figures out which elements in InOutDescriptor are missing from the current composition of the given entity and then returns the resulting delta via InOutDescriptor. If InOutDescriptor indicates shared fragments to be added the caller is required to provide matching values for the indicated shared fragment types, via AddedSharedFragmentValues.
| Name | AddCompositionToEntity_GetDelta |
| Type | function |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassEntityManager.h |
| Include Path | #include "MassEntityManager.h" |
| Source | /Engine/Source/Runtime/MassEntity/Private/MassEntityManager.cpp |
void AddCompositionToEntity_GetDelta
(
FMassEntityHandle EntityHandle,
FMassArchetypeCompositionDescriptor & InOutDescriptor,
const FMassArchetypeSharedFragmentValues * AddedSharedFragmentValues
)