RealDocs

AActor::HasHLODRelevantComponents

function Engine Since 4.14
#include "GameFramework/Actor.h"
Access: public Specifiers: virtual

Description

Returns whether this actor contains any components that should be included when building its Hierarchical LOD proxy mesh. Used by the HLOD build pipeline to determine which actors need proxy geometry.

Caveats & Gotchas

  • Overrides of this function affect only the HLOD build pipeline, not runtime visibility. Returning false here prevents the actor from contributing a proxy mesh but does not disable HLOD culling on its individual components.
  • The default implementation checks bRelevantForLevelBounds and whether any visible static mesh components are present — not just any component. Override carefully if your actor uses custom renderable components.

Signature

ENGINE_API virtual bool HasHLODRelevantComponents() const;

Return Type

bool

Example

Exclude a spawner actor from HLOD builds C++
bool AMySpawner::HasHLODRelevantComponents() const
{
    return false; // No visible mesh; exclude from HLOD proxy generation
}

Version History

Introduced in: 4.14

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.