Navigation
API > API/Runtime > API/Runtime/MassEntity > API/Runtime/MassEntity/FMassEntityManager
Description
Adds ElementType to the entity, treating it accordingly based on which element type it represents (i.e. Fragment or Tag). This function handles sparse elements. The function will assert on unhandled types.
| Name | AddElementToEntity |
| Type | function |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassEntityManager.h |
| Include Path | #include "MassEntityManager.h" |
| Source | /Engine/Source/Runtime/MassEntity/Private/MassEntityManager.cpp |
void AddElementToEntity
(
FMassEntityHandle Entity,
TNotNull< const UScriptStruct * > ElementType
)