UAudioComponent::AdjustAttenuation

This function is used to modify the Attenuation Settings on the targeted Audio Component instance.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/AudioComponent.h

Include

#include "Components/AudioComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/AudioComponent.cpp

Syntax

void AdjustAttenuation
(
    const FSoundAttenuationSettings & InAttenuationSettings
)

Remarks

This function is used to modify the Attenuation Settings on the targeted Audio Component instance. It is worth noting that Attenuation Settings are only passed to new Active Sounds on start, so modified Attenuation data should be set before sound playback.