Highroad Engine v1.3
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
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 Member Functions

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

Static Public Member Functions

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

Public Attributes

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

Constructor & Destructor Documentation

◆ MMSoundManagerTrackFadeEvent()

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

Member Function Documentation

◆ Trigger()

static void MoreMountains.Tools.MMSoundManagerTrackFadeEvent.Trigger ( 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

◆ 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: