Highroad Engine v1.3
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
MoreMountains.Tools.MMSoundManagerSoundFadeEvent Struct Reference

This event will let you pause More...

Public Member Functions

 MMSoundManagerSoundFadeEvent (int soundID, float fadeDuration, float finalVolume, MMTweenType fadeTween)
 

Static Public Member Functions

static void Trigger (int soundID, float fadeDuration, float finalVolume, MMTweenType fadeTween)
 

Public Attributes

int SoundID
 the ID of the sound to fade More...
 
float FadeDuration
 the duration of the fade (in seconds) More...
 
float FinalVolume
 the volume towards which to fade this sound More...
 
MMTweenType FadeTween
 the tween over which to fade this sound More...
 

Static Public Attributes

static MMSoundManagerSoundFadeEvent e
 

Detailed Description

This event will let you pause

Example : MMSoundManagerSoundFadeEvent.Trigger(33, 2f, 0.3f, new MMTweenType(MMTween.MMTweenCurve.EaseInElastic)); will fade the sound with an ID of 33 towards a volume of 0.3, over 2 seconds, on an elastic curve

Constructor & Destructor Documentation

◆ MMSoundManagerSoundFadeEvent()

MoreMountains.Tools.MMSoundManagerSoundFadeEvent.MMSoundManagerSoundFadeEvent ( int  soundID,
float  fadeDuration,
float  finalVolume,
MMTweenType  fadeTween 
)

Member Function Documentation

◆ Trigger()

static void MoreMountains.Tools.MMSoundManagerSoundFadeEvent.Trigger ( int  soundID,
float  fadeDuration,
float  finalVolume,
MMTweenType  fadeTween 
)
static

Member Data Documentation

◆ e

MMSoundManagerSoundFadeEvent MoreMountains.Tools.MMSoundManagerSoundFadeEvent.e
static

◆ FadeDuration

float MoreMountains.Tools.MMSoundManagerSoundFadeEvent.FadeDuration

the duration of the fade (in seconds)

◆ FadeTween

MMTweenType MoreMountains.Tools.MMSoundManagerSoundFadeEvent.FadeTween

the tween over which to fade this sound

◆ FinalVolume

float MoreMountains.Tools.MMSoundManagerSoundFadeEvent.FinalVolume

the volume towards which to fade this sound

◆ SoundID

int MoreMountains.Tools.MMSoundManagerSoundFadeEvent.SoundID

the ID of the sound to fade


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