Navigation
API > API/Plugins > API/Plugins/MassLOD
References
| Module | MassLOD |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassLOD/Public/MassLODLogic.h |
| Include | #include "MassLODLogic.h" |
Syntax
struct FViewerLODInfo
Remarks
TMassLODCollector outputs
struct FMassViewerInfoFragment { / Closest viewer distance (Always needed) float ClosestViewerDistanceSq;
/ Square distances to each valid viewers (Required when FLODLogic::bStoreInfoPerViewer is enabled) TArray
struct FMassInfoPerViewerFragment { / Square distances to each valid viewers (Required when FLODLogic::bStoreInfoPerViewer is enabled) TArray
/ Distances to each valid viewers frustums (Required when FLODLogic::bDoVisibilityLogic and FLODLogic::bStoreInfoPerViewer are enabled) TArray
struct FMassLODFragment { / LOD information TEnumAsByte
/ Visibility information (Required when FLODLogic::bDoVisibilityLogic is enabled) EMassVisibility Visibility; EMassVisibility PrevVisibility
/ Floating point LOD value, scaling from 0 to 3, 0 highest LOD and 3 being completely off LOD / (Required only when FLODLogic::bCalculateLODSignificance is enabled) float LODSignificance = 0.0f; //
/ Per viewer LOD information (Required when FLODLogic::bCalculateLODPerViewer is enabled) TArray
/ Visibility information per viewer (Required when FLODLogic::bDoVisibilityLogic and FLODLogicbStoreInfoPerViewer are enabled) TArray
struct FMassVariableTickFragment { / Accumulated DeltaTime float DeltaTime = 0.0f; float LastTickedTime = 0.0f; };
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bClearData | Boolean indicating the viewer data needs to be cleared | |
| bool | bLocal | Boolean indicating the viewer is local or not | |
| FVector | Direction | ||
| FConvexVolume | Frustum | Viewer frustum (will not include near and far planes) | |
| FMassViewerHandle | Handle | The handle to the viewer | |
| FVector | Location | Viewer location and looking direction |