Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Sound > API/Runtime/Engine/Sound/USoundCue
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Sound/SoundCue.h |
| Include | #include "Sound/SoundCue.h" |
| Source | /Engine/Source/Runtime/Engine/Private/SoundCue.cpp |
float EvaluateMaxAttenuation
(
const FTransform & Origin,
FVector Location,
float DistanceScale
) const
Remarks
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 float representing the max evaluated attenuation curve value based on distance from Origin to Location (will be 1.0 if no attenuation is set)