Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Components > UAudioComponent
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 |
void AdjustVolume
&40;
float AdjustVolumeDuration,
float AdjustVolumeLevel,
const EAudioFaderCurve FadeCurve
&41;
Remarks
This function allows designers to trigger an adjustment to the sound instance’s playback Volume with options for smoothly applying a curve over time.
Parameters
Name | Description |
---|---|
AdjustVolumeDuration | The length of time in which to interpolate between the initial volume and the new volume. |
AdjustVolumeLevel | The new volume to set the Audio Component to. |
FadeCurve | The curve used when interpolating between the old and new volume. |