engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
Audio::FVolumeFader类 参考

Control-rate fader for managing volume fades of various standard shapes. 更多...

#include <VolumeFader.h>

Public 成员函数

void Activate ()
 Activates the fader if currently deactivated. 更多...
 
void Deactivate ()
 Deactivates the fader, causing it to remain at the current value and disregard update.
 
float GetActiveDuration () const
 Gets time fader is to remain active (-1.0f if always active).
 
EFaderCurve GetCurve () const
 Returns the curve type of the fader
 
float GetFadeDuration () const
 Returns the duration of the fade.
 
float GetTargetVolume () const
 Returns the target volume of the fader
 
float GetVolume () const
 Returns current volume of fader
 
float GetVolumeAfterTime (float InDeltaTime) const
 Returns the volume given the delta from the current time into the future (Effectively like running to retrieve volume but without actually updating internal state).
 
bool IsActive () const
 Whether or not the fader is active.
 
bool IsFading () const
 Returns whether or not the fader is currently fading over time.
 
bool IsFadingIn () const
 Returns whether or not the fader is currently fading over time and value is increasing.
 
bool IsFadingOut () const
 Returns whether or not the fader is currently fading over time and value is decreasing.
 
void SetActiveDuration (float InDuration)
 Sets the duration the fader is to be active in the future, after which point the fader is disabled. 更多...
 
void SetVolume (float InVolume)
 Sets the volume immediately, interrupting any currently active fade.
 
void StartFade (float InVolume, float InDuration, EFaderCurve InCurve)
 Applies a volume fade over time with the provided parameters.
 
void StopFade ()
 Stops fade, maintaining the current value as the target.
 
void Update (float InDeltaTime)
 Updates the fader's state with the given delta in time since last update.
 

详细描述

Control-rate fader for managing volume fades of various standard shapes.

成员函数说明

◆ Activate()

void Audio::FVolumeFader::Activate ( )

Activates the fader if currently deactivated.

Sets duration to indefinite (-1.0f)

◆ SetActiveDuration()

void Audio::FVolumeFader::SetActiveDuration ( float  InDuration)

Sets the duration the fader is to be active in the future, after which point the fader is disabled.

When disabled, fader will hold the current fade state until activated, at which point it will continue applying the fade over the remainder of the fade duration.


该类的文档由以下文件生成: