Navigation
API > API/Runtime > API/Runtime/MassEntity > API/Runtime/MassEntity/FMassEntityManager
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedRef< FEntityCreationContext > BatchCreateEntities
(
const FMassArchetypeHandle& ArchetypeHandle, |
MassEntityManager.h | ||
TSharedRef< FEntityCreationContext > BatchCreateEntities
(
const FMassArchetypeHandle& ArchetypeHandle, |
A version of CreateEntity that's creating a number of entities (Count) in one go | MassEntityManager.h |
BatchCreateEntities(const FMassArchetypeHandle &, const int32, TArray< FMassEntityHandle > &)
| Name | BatchCreateEntities |
| Type | function |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassEntityManager.h |
| Include Path | #include "MassEntityManager.h" |
TSharedRef < FEntityCreationContext > BatchCreateEntities
(
const FMassArchetypeHandle & ArchetypeHandle,
const int32 Count,
TArray < FMassEntityHandle > & InOutEntities
)
BatchCreateEntities(const FMassArchetypeHandle &, const FMassArchetypeSharedFragmentValues &, const int32, TArray< FMassEntityHandle > &)
Description
A version of CreateEntity that's creating a number of entities (Count) in one go
| Name | BatchCreateEntities |
| Type | function |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassEntityManager.h |
| Include Path | #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
)
a creation context that will notify all the interested observers about newly created fragments once the context is released
Parameters
| Name | Remarks |
|---|---|
| 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 |