Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/USoundCue
Description
For SoundCues, use this instead of GetAttenuationSettingsToApply() -> Evaluate
In cases where a SoundCue has multiple Attenuation nodes within it, this function evaluates them all and returns the maximum value
| Name | EvaluateMaxAttenuation |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Sound/SoundCue.h |
| Include Path | #include "Sound/SoundCue.h" |
| Source | /Engine/Source/Runtime/Engine/Private/SoundCue.cpp |
float EvaluateMaxAttenuation
(
const FTransform & Origin,
FVector Location,
float DistanceScale
) const
float representing the max evaluated attenuation curve value based on distance from Origin to Location (will be 1.0 if no attenuation is set)