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.
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 Context of the chunk execution TransformList is the fragment transforms of the entities 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 Context of the chunk execution TransformList is the fragment transforms of the entities ViewersInfoList is the fragment where to store source information for LOD calculation PerViewerInfoList is the per viewer information | |
| void | PrepareExecution
(
TConstArrayView< FViewerInfo > Viewers |
Prepares execution for the current frame, needed to be called before every execution Viewers is the array of all the known viewers |