UAudioComponent::FadeIn

This function allows designers to call Play on an Audio Component instance while applying a volume curve 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 function allows designers to call Play on an Audio Component instance while applying a volume curve over time. Parameters allow designers to indicate the duration of the fade, the curve shape, and the start time if seeking into the sound.

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

FadeCurve

The curve to use when interpolating between the old and new volume

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