Can't override FPrimitiveSceneProxy::GetViewRelevance()

The problem was in CalcBounds method in UComponent which creates FPrimitiveSceneProxy. View relevance methods and subsequent GetDynamicMeshElements won’t call if you won’t override UPrimitiveComponent::CalcBounds. Any non-zero bounds is enough to make primitive visible.

FBoxSphereBounds ULandscapeChunkComponent::CalcBounds(const FTransform& LocalToWorld) const
{
	return FBoxSphereBounds(LocalToWorld.GetLocation(), FVector(1,1,1) * 50, 71.f);
}
1 Like