UAudioComponent::FadeIn

This can be used in place of "play" when it is desired to fade in the sound over time.

Windows
MacOS
Linux

Override Hierarchy

UAudioComponent::FadeIn()

UAudioCurveSourceComponent::FadeIn()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/AudioComponent.h

Include

#include "Components/AudioComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/AudioComponent.cpp

Syntax

virtual void FadeIn
(
    float FadeInDuration,
    float FadeVolumeLevel,
    float StartTime,
    const EAudioFaderCurve FadeCurve
)

Remarks

This can be used in place of "play" when it is desired to fade in the sound over time.

If FadeTime is 0.0, the change in volume is instant. If FadeTime is > 0.0, the multiplier will be increased from 0 to FadeVolumeLevel over FadeIn seconds.

Parameters

Parameter

Description

FadeInDuration

how long it should take to reach the FadeVolumeLevel

FadeVolumeLevel

the percentage of the AudioComponents's calculated volume to fade to

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