LODCollector in Mass Framework

Published on

How does LODCollector work in Mass Framework? Mass Framework is a ECS for managing crowds and traffic in Unreal 5.0 and above.

Platforma

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.<mark>AddFragment&lt;FMassViewerInfoFragment&gt;</mark>();
    	BuildContext.<mark>AddTag&lt;FMassCollectLODViewerInfoTag&gt;</mark>();
    	BuildContext.<mark>RequireFragment&lt;FTransformFragment&gt;</mark>();
    }
Vrealmatic consulting

Anything unclear?

Let us know!

Contact Us