Navigation
API > API/Runtime > API/Runtime/MassEntity > API/Runtime/MassEntity/FMassEntityManager > API/Runtime/MassEntity/FMassEntityManager/BatchCreateReservedEntities
References
| Module | MassEntity |
| Header | /Engine/Source/Runtime/MassEntity/Public/MassEntityManager.h |
| Include | #include "MassEntityManager.h" |
| Source | /Engine/Source/Runtime/MassEntity/Private/MassEntityManager.cpp |
TSharedRef< FEntityCreationContext > BatchCreateReservedEntities
(
const FMassArchetypeHandle & ArchetypeHandle,
const FMassArchetypeSharedFragmentValues & SharedFragmentValues,
TConstArrayView< FMassEntityHandle > ReservedEntities
)
Remarks
A version of CreateEntity that's creating a number of entities (Count) in one go a creation context that will notify all the interested observers about newly created fragments once the context is released
Parameters
| Name | Description |
|---|---|
| ArchetypeHandle | you want this entity to be |
| SharedFragmentValues | to be associated with the entities |
| ReservedEntities | a list of reserved entities that have not yet been assigned to an archetype. |