Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Kismet > UGameplayStatics
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h |
Include | #include "Kismet/GameplayStatics.h" |
Source | /Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp |
static void SetSoundMixClassOverride
&40;
const UObject &42; WorldContextObject,
class USoundMix &42; InSoundMixModifier,
class USoundClass &42; InSoundClass,
float Volume,
float Pitch,
float FadeInTime,
bool bApplyToChildren
&41;
Remarks
Overrides the sound class adjuster in the given sound mix. If the sound class does not exist in the input sound mix, the sound class adjuster will be added to the list of active sound mix modifiers.
Parameters
Name | Description |
---|---|
InSoundMixModifier | The sound mix to modify. |
InSoundClass | The sound class to override (or add) in the sound mix. |
Volume | The volume scale to set the sound class adjuster to. |
Pitch | The pitch scale to set the sound class adjuster to. |
FadeInTime | The interpolation time to use to go from the current sound class adjuster values to the new values. |
bApplyToChildren | Whether or not to apply this override to the sound class' children or to just the specified sound class. |