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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback