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 withSimulationLOD.
.hUCLASS(meta = (DisplayName = "LODCollector")) class MASSLOD_API UMassLODCollectorTrait : public UMassEntityTraitBase { GENERATED_BODY() public: virtual void BuildTemplate(FMassEntityTemplateBuildContext& BuildContext, const UWorld& World) const override; };
.cppvoid UMassLODCollectorTrait::BuildTemplate(FMassEntityTemplateBuildContext& BuildContext, const UWorld& World) const { BuildContext.AddFragment<FMassViewerInfoFragment>(); BuildContext.AddTag<FMassCollectLODViewerInfoTag>(); BuildContext.RequireFragment<FTransformFragment>(); }
- Built-in