Navigation
API > API/Runtime > API/Runtime/MassEntity > API/Runtime/MassEntity/FMassEntityManager
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T & AddSparseElementToEntity
(
FMassEntityHandle EntityHandle |
Adds a sparse fragment to the entity and returns a reference to the newly created fragments. | MassEntityManager.h | |
void AddSparseElementToEntity
(
FMassEntityHandle EntityHandle |
MassEntityManager.h | ||
FStructView AddSparseElementToEntity
(
FMassEntityHandle EntityHandle, |
Adds sparse element indicated by ElementType to the entity indicated by EntityHandle. | MassEntityManager.h |
AddSparseElementToEntity(FMassEntityHandle)
Description
Adds a sparse fragment to the entity and returns a reference to the newly created fragments. This function can only fail if EntityHandle doesn't represent a valid, active entity.
| Name | AddSparseElementToEntity |
| Type | function |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassEntityManager.h |
| Include Path | #include "MassEntityManager.h" |
template<UE::Mass::CFragment T>
T & AddSparseElementToEntity
(
FMassEntityHandle EntityHandle
)
AddSparseElementToEntity(FMassEntityHandle)
| Name | AddSparseElementToEntity |
| Type | function |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassEntityManager.h |
| Include Path | #include "MassEntityManager.h" |
template<UE::Mass::CTag T>
void AddSparseElementToEntity
(
FMassEntityHandle EntityHandle
)
AddSparseElementToEntity(FMassEntityHandle, TNotNull< const UScriptStruct * >)
Description
Adds sparse element indicated by ElementType to the entity indicated by EntityHandle. Works with tags too, but returns an empty struct view For more information on Sparse Elements see FSparseElementsStorage
| Name | AddSparseElementToEntity |
| Type | function |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassEntityManager.h |
| Include Path | #include "MassEntityManager.h" |
| Source | /Engine/Source/Runtime/MassEntity/Private/MassEntityManager.cpp |
FStructView AddSparseElementToEntity
(
FMassEntityHandle EntityHandle,
TNotNull< const UScriptStruct * > ElementType
)