RealDocs

UAudioComponent::CalcBounds

function Engine Since 4.0
#include "Components/AudioComponent.h"
Access: public Specifiers: virtualconstoverride

Description

Computes the world-space bounds of this audio component, overriding USceneComponent's default implementation.

Caveats & Gotchas

  • This is an internal SceneComponent override called by the engine's bounds/attachment update machinery — it is not intended to be called directly from gameplay code.
  • Audio components have no visual extent, so the returned bounds are typically a small or zero-size box around the component's location rather than a meaningful volume for culling.

Signature

ENGINE_API virtual FBoxSphereBounds CalcBounds(const FTransform& LocalToWorld) const override;

Parameters

Name Type Description Default
LocalToWorld const FTransform& The component's world transform to compute bounds relative to.

Return Type

FBoxSphereBounds

Example

Override in a derived component C++
FBoxSphereBounds UMyAudioComponent::CalcBounds(const FTransform& LocalToWorld) const
{
    return Super::CalcBounds(LocalToWorld);
}

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.