This event will let you order the MMSoundManager to fade an entire track's sounds' volume towards the specified FinalVolume.
More...
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
◆ Modes
| Enumerator |
|---|
| PlayFade | |
| StopFade | |
◆ MMSoundManagerTrackFadeEvent()
◆ Trigger()
◆ 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
the track to fade the volume of
The documentation for this struct was generated from the following file: