Feel  4.0
The best way to improve your game's feel and make it extra juicy
MoreMountains.Tools.MMSoundManagerTrackFadeEvent Struct Reference

This event will let you order the MMSoundManager to fade an entire track's sounds' volume towards the specified FinalVolume More...

Public Types

enum  Modes { Modes.PlayFade, Modes.StopFade }
 

Public Member Functions

 MMSoundManagerTrackFadeEvent (Modes mode, MMSoundManager.MMSoundManagerTracks track, float fadeDuration, float finalVolume, MMTweenType fadeTween)
 

Static Public Member Functions

static void Trigger (Modes mode, MMSoundManager.MMSoundManagerTracks track, float fadeDuration, float finalVolume, MMTweenType fadeTween)
 

Public Attributes

Modes Mode
 whether we are fading a sound, or stopping an existing fade More...
 
MMSoundManager.MMSoundManagerTracks Track
 the track to fade the volume of More...
 
float FadeDuration
 the duration of the fade, in seconds More...
 
float FinalVolume
 the final volume to fade towards More...
 
MMTweenType FadeTween
 the tween to use when fading More...
 

Static Public Attributes

static MMSoundManagerTrackFadeEvent e
 

Detailed Description

This event will let you order the MMSoundManager to fade an entire track's sounds' volume towards the specified FinalVolume

Example : MMSoundManagerTrackFadeEvent.Trigger(MMSoundManager.MMSoundManagerTracks.Music, 2f, 0.5f, new MMTweenType(MMTween.MMTweenCurve.EaseInCubic)); will fade the volume of the music track towards 0.5, over 2 seconds, using an ease in cubic tween

Member Enumeration Documentation

◆ Modes

Enumerator
PlayFade 
StopFade 

Constructor & Destructor Documentation

◆ MMSoundManagerTrackFadeEvent()

MoreMountains.Tools.MMSoundManagerTrackFadeEvent.MMSoundManagerTrackFadeEvent ( Modes  mode,
MMSoundManager.MMSoundManagerTracks  track,
float  fadeDuration,
float  finalVolume,
MMTweenType  fadeTween 
)

Member Function Documentation

◆ Trigger()

static void MoreMountains.Tools.MMSoundManagerTrackFadeEvent.Trigger ( Modes  mode,
MMSoundManager.MMSoundManagerTracks  track,
float  fadeDuration,
float  finalVolume,
MMTweenType  fadeTween 
)
static

Member Data Documentation

◆ e

MMSoundManagerTrackFadeEvent MoreMountains.Tools.MMSoundManagerTrackFadeEvent.e
static

◆ FadeDuration

float MoreMountains.Tools.MMSoundManagerTrackFadeEvent.FadeDuration

the duration of the fade, in seconds

◆ FadeTween

MMTweenType MoreMountains.Tools.MMSoundManagerTrackFadeEvent.FadeTween

the tween to use when fading

◆ FinalVolume

float MoreMountains.Tools.MMSoundManagerTrackFadeEvent.FinalVolume

the final volume to fade towards

◆ Mode

Modes MoreMountains.Tools.MMSoundManagerTrackFadeEvent.Mode

whether we are fading a sound, or stopping an existing fade

◆ Track

MMSoundManager.MMSoundManagerTracks MoreMountains.Tools.MMSoundManagerTrackFadeEvent.Track

the track to fade the volume of


The documentation for this struct was generated from the following file: