Navigation
API > API/Runtime > API/Runtime/MassEntity > API/Runtime/MassEntity/FMassEntityManager
Description
Returns a FStructView for the given fragment on the specified entity. The view points directly into archetype chunk storage. WARNING: For initializing fragments on newly created entities, prefer the CreateEntity(TConstArrayView
| Name | GetFragmentDataStruct |
| Type | function |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassEntityManager.h |
| Include Path | #include "MassEntityManager.h" |
FStructView GetFragmentDataStruct
(
FMassEntityHandle EntityHandle,
const UScriptStruct * FragmentType
) const
an empty FStructView if the entity does not have the fragment.