UGameplayStatics::SetSoundMixClassOverride

Overrides the sound class adjuster in the given sound mix.

Windows
MacOS
Linux

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

Syntax

static void SetSoundMixClassOverride
(
    const UObject * WorldContextObject,
    class USoundMix * InSoundMixModifier,
    class USoundClass * InSoundClass,
    float Volume,
    float Pitch,
    float FadeInTime,
    bool bApplyToChildren
)

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 adjustment will be added to the sound mix.

Parameters

Parameter

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss