LODCollector in Mass Framework

How does LODCollector work in Mass Framework? Mass Framework is an ECS for managing crowds and traffic, available since Unreal Engine 5.0. Engine code excerpts below were taken from UE 5.3 - check the source of your engine version (UE 5.8) for implementation details.

Vladimír NeporAuthorVladimír Nepor
Published

LODCollector with MassGameplay built-in resources

  • LODCollector Trait

    • Built-in MassGameplay.
    • Trait located At UE5/Engine/Plugins/Runtime/MassGameplay/Source/MassLOD.
    • LODCollector trait shares the same Trait file with SimulationLOD.
    void UMassLODCollectorTrait::BuildTemplate(FMassEntityTemplateBuildContext& BuildContext, const UWorld& World) const
    {
    	BuildContext.AddFragment<FMassViewerInfoFragment>();
    	BuildContext.AddTag<FMassCollectLODViewerInfoTag>();
    	BuildContext.RequireFragment<FTransformFragment>();
    }

Anything unclear?

Let us know!

Contact Us