Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UGameplayStatics
Description
Linearly interpolates the attenuation distance scale value from it's current attenuation distance override value (1.0f it not overridden) to its new attenuation distance override, over the given amount of time
- Fire and Forget.
- Not Replicated.
| Name | SetSoundClassDistanceScale |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h |
| Include Path | #include "Kismet/GameplayStatics.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp |
UFUNCTION (BlueprintCallable, BlueprintCosmetic, Category="Audio",
Meta=(WorldContext="WorldContextObject"))
static void SetSoundClassDistanceScale
(
const UObject * WorldContextObject,
USoundClass * SoundClass,
float DistanceAttenuationScale,
float TimeSec
)