Navigation
API > API/Runtime > API/Runtime/MassEntity
The type hosts a statically-typed collection of TArrays, where each TArray is strongly-typed (i.e. it contains instances of given structs rather than structs wrapped up in FInstancedStruct). This type lets us do batched fragment values setting by simply copying data rather than setting per-instance.
| Name | TMultiArray |
| Type | struct |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassEntityTypes.h |
| Include Path | #include "MassEntityTypes.h" |
Syntax
template<typename T, typename... TOthers>
struct TMultiArray
Class Specializations
| Name | Remarks |
|---|---|
| TMultiArray< 1, InElementType, InAllocatorType > | Specialization for single dimensional MultiArray |
Struct Specializations
| Name | Remarks |
|---|---|
| TMultiArray< T > | TMultiArray single-type specialization |
Enums
Public
| Name | Remarks |
|---|---|
| TMultiArray |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FType | std::remove_const_t< typename TRemoveReference< T >::Type > | MassEntityTypes.h | |
| Super | TMultiArray< TOthers... > | MassEntityTypes.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FragmentInstances | TArray< FType > | MassEntityTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Add
(
const FType& Item, |
MassEntityTypes.h | ||
SIZE_T GetAllocatedSize() |
MassEntityTypes.h | ||
void GetAsGenericMultiArray
(
TArray< FStructArrayView >& A |
MassEntityTypes.h | ||
void GetheredAffectedFragments
(
FMassFragmentBitSet& OutBitSet |
MassEntityTypes.h | ||
int GetNumArrays() |
MassEntityTypes.h | ||
void Reset() |
MassEntityTypes.h |