Navigation
API > API/Runtime > API/Runtime/MassEntity > API/Runtime/MassEntity/FMassEntityManager > API/Runtime/MassEntity/FMassEntityManager/BatchCreateEntities
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 > BatchCreateEntities
(
const FMassArchetypeHandle & ArchetypeHandle,
const FMassArchetypeSharedFragmentValues & SharedFragmentValues,
const int32 Count,
TArray < FMassEntityHandle > & InOutEntities
)
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 |
| Count | number of entities to create |
| InOutEntities | the newly created entities are appended to given array, i.e. the pre-existing content of OutEntities won't be affected by the call |