Navigation
API > API/Runtime > API/Runtime/MassEntity > API/Runtime/MassEntity/FMassEntityManager > API/Runtime/MassEntity/FMassEntityManager/CreateEntity
References
| Module | MassEntity |
| Header | /Engine/Source/Runtime/MassEntity/Public/MassEntityManager.h |
| Include | #include "MassEntityManager.h" |
| Source | /Engine/Source/Runtime/MassEntity/Private/MassEntityManager.cpp |
FMassEntityHandle CreateEntity
(
TConstArrayView< FInstancedStruct > FragmentInstanceList,
const FMassArchetypeSharedFragmentValues & SharedFragmentValues,
const FMassArchetypeCreationParams & CreationParams
)
Remarks
Creates fully built entity ready to be used by the subsystem FMassEntityHandle id of the newly created entity
Parameters
| Name | Description |
|---|---|
| FragmentInstanceList | is the fragments to create the entity from and initialize values |
| SharedFragmentValues | to be associated with the entity |