AudioComponent-FadeIn(float_float_float_AudioFadeCurve).md

April 18, 2021 ยท View on GitHub

UnrealEngine.Framework.AudioComponent

AudioComponent.FadeIn(float, float, float, UnrealEngine.Framework.AudioFadeCurve) Method

Smoothly starts the audio, can be used instead of Play()

public void FadeIn(float duration, float volumeLevel=1f, float startTime=0f, UnrealEngine.Framework.AudioFadeCurve fadeCurve=UnrealEngine.Framework.AudioFadeCurve.Linear);

Parameters

duration System.Single
Duration to reach volumeLevel

volumeLevel System.Single
The percentage of calculated volume to fade to

startTime System.Single
Fading start time

fadeCurve AudioFadeCurve
Curve to adjust audio volume