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

This event will let you pause More...

Public Types

enum  Modes { Modes.PlayFade, Modes.StopFade }
 

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

Modes Mode
 whether we are fading a sound, or stopping an existing fade More...
 
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

Member Enumeration Documentation

◆ Modes

Enumerator
PlayFade 
StopFade 

Constructor & Destructor Documentation

◆ MMSoundManagerSoundFadeEvent()

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

Member Function Documentation

◆ Trigger()

static void MoreMountains.Tools.MMSoundManagerSoundFadeEvent.Trigger ( Modes  mode,
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

◆ Mode

Modes MoreMountains.Tools.MMSoundManagerSoundFadeEvent.Mode

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

◆ SoundID

int MoreMountains.Tools.MMSoundManagerSoundFadeEvent.SoundID

the ID of the sound to fade


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