Navigation
API > API/Plugins > API/Plugins/MassLOD
Helper struct to control LOD tick rate for each agent, It will add a fragment tag to group the agent of the same LOD together, that way the user can do tick rate logic per chunk.
| Name | TMassLODTickRateController |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassLOD/Public/MassLODTickRateController.h |
| Include Path | #include "MassLODTickRateController.h" |
Syntax
template<typename TVariableTickChunkFragment, typename FLODLogic>
struct TMassLODTickRateController : public FMassLODBaseLogic
Inheritance Hierarchy
- FMassLODBaseLogic → TMassLODTickRateController
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TMassLODTickRateController() |
MassLODTickRateController.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Initialize
(
const float InTickRate, |
Initializes the LOD trick rate controller, needed to be called once at initialization time (Only when FLODLogic::bDoVariableTickRate is enabled) @Param InTickRate the rate at which entities should be ticked per @Param bInShouldSpreadFirstUpdate over the period specified in InTickRate parameter | MassLODTickRateController.h | |
bool ShouldAdjustLODFromCountForChunk
(
const FMassExecutionContext& Context |
Retrieve if it is needed to adjust LOD from the newly calculated count for this chunk | MassLODTickRateController.h | |
bool ShouldCalculateLODForChunk
(
const FMassExecutionContext& Context |
Retrieve if it is needed to calculate the LOD for this chunk | MassLODTickRateController.h | |
bool UpdateTickRateFromLOD
(
FMassExecutionContext& Context, |
Updates tick rate for this chunk and its entities | MassLODTickRateController.h |