RealDocs

AActor::IsLevelBoundsRelevant

function Engine Since unknown
#include "GameFramework/Actor.h"
Access: public Specifiers: virtualconst

Description

Returns whether this actor should be included when calculating the level's bounding box. Controlled by the bRelevantForLevelBounds property.

Caveats & Gotchas

  • ALevelBounds calls this on every actor in the level to compute the level's extents — excluding an actor from level bounds does not affect its runtime collision or rendering visibility.
  • Override this to exclude large procedurally placed actors (e.g., terrain or skyboxes) from inflating the level bounds, which can cause incorrect culling decisions in sublevels.
  • The default implementation simply returns the bRelevantForLevelBounds UPROPERTY; if you override without calling Super, you bypass any engine logic that may be added in future versions.

Signature

virtual bool IsLevelBoundsRelevant() const { return bRelevantForLevelBounds; }

Return Type

bool

Example

Exclude a background sky actor from level bounds C++
class AMySkyActor : public AActor
{
public:
    virtual bool IsLevelBoundsRelevant() const override { return false; }
};

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.