Navigation
API > API/Runtime > API/Runtime/MassEntity > API/Runtime/MassEntity/FMassEntityManager
Description
Removes the specified shared fragment types from all entities in the provided collections. Entities are moved to new archetypes without the removed shared fragment types.
| Name | BatchRemoveSharedFragmentFromEntities |
| 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 BatchRemoveSharedFragmentFromEntities
(
TConstArrayView< FMassArchetypeEntityCollection > EntityCollections,
const FMassSharedFragmentBitSet & ToRemove
)
Parameters
| Name | Remarks |
|---|---|
| EntityCollections | the entity collections to process |
| ToRemove | bitset of shared fragment types to remove |