Navigation
API > API/Plugins > API/Plugins/MassLOD
Helper struct to collect needed information on each agent that will be needed later for LOD calculation Requires TTransformFragment fragment. Stores information in TViewerInfoFragment fragment.
| Name | TMassLODCollector |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassLOD/Public/MassLODCollector.h |
| Include Path | #include "MassLODCollector.h" |
Syntax
template<typename FLODLogic>
struct TMassLODCollector : public FMassLODBaseLogic
Inheritance Hierarchy
- FMassLODBaseLogic → TMassLODCollector
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TMassLODCollector() |
MassLODCollector.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CollectLODInfo
(
FMassExecutionContext& Context, |
Collects the information for LOD calculation, called for each entity chunks Use next method when FLODLogic::bStoreInfoPerViewer is enabled @Param Context of the chunk execution @Param TransformList is the fragment transforms of the entities @Param ViewersInfoList is the fragment where to store source information for LOD calculation | MassLODCollector.h | |
void CollectLODInfo
(
FMassExecutionContext& Context, |
Collects the information for LOD calculation, called for each entity chunks Use this version when FLODLogic::bStoreInfoPerViewer is enabled It collects information per viewer into the PerViewerInfoList fragments @Param Context of the chunk execution @Param TransformList is the fragment transforms of the entities @Param ViewersInfoList is the fragment where to store source information for LOD calculation @Param PerViewerInfoList is the per viewer information | MassLODCollector.h | |
void PrepareExecution
(
TConstArrayView< FViewerInfo > Viewers |
Prepares execution for the current frame, needed to be called before every execution @Param Viewers is the array of all the known viewers | MassLODCollector.h |