Navigation
API > API/Plugins > API/Plugins/MassLOD
Inheritance Hierarchy
- FMassLODBaseLogic
- TMassLODCollector
References
| Module | MassLOD |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassLOD/Public/MassLODCollector.h |
| Include | #include "MassLODCollector.h" |
Syntax
template<typename FLODLogic>
struct TMassLODCollector : public FMassLODBaseLogic
Remarks
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.
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| 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 | |
| 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 | |
| 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 |