Navigation
API > API/Plugins > API/Plugins/MassEntity > API/Plugins/MassEntity/FMassEntityManager > API/Plugins/MassEntity/FMassEntityManager/BatchCreateEntities
References
| Module | MassEntity |
| Header | /Engine/Plugins/Runtime/MassEntity/Source/MassEntity/Public/MassEntityManager.h |
| Include | #include "MassEntityManager.h" |
TSharedRef< FEntityCreationContext > BatchCreateEntities
&40;
const FMassArchetypeHandle & ArchetypeHandle,
const int32 Count,
TArray< FMassEntityHandle > & OutEntities
&41;
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 |
|---|---|
| Archetype | you want this entity to be |
| SharedFragmentValues | to be associated with the entities |
| Count | number of entities to create |
| OutEntities | the newly created entities are appended to given array, i.e. the pre-existing content of OutEntities won't be affected by the call |