UActorComponent::IsHLODRelevant
#include "Components/ActorComponent.h"
Access: public
Specifiers: virtualconst
Description
Override to indicate that this component should be included in HLOD (Hierarchical Level of Detail) proxy generation. Returns false by default; static mesh components override this to return true.
Caveats & Gotchas
- • Only meaningful at cook/build time and in the HLOD builder tool. At runtime, the HLOD proxy already exists and this virtual is not called on the original component.
- • If you have a custom component that renders custom geometry not inherited from UPrimitiveComponent, you must also override `GetHLODProxyComponents` and `ComputeHLODHash` (both editor-only) for correct HLOD proxy generation.
Signature
virtual bool IsHLODRelevant() const { return false; } Return Type
bool Example
Include custom component in HLOD C++
virtual bool IsHLODRelevant() const override
{
return bContributesToHLOD;
} See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?