Feel  3.16
The best way to improve your game's feel and make it extra juicy
MoreMountains.Feedbacks.MMF_MMSoundManagerTrackFade Class Reference

This feedback will let you fade all the sounds on a specific track at once. You will need a MMSoundManager in your scene for this to work. More...

Inheritance diagram for MoreMountains.Feedbacks.MMF_MMSoundManagerTrackFade:
MoreMountains.Feedbacks.MMF_Feedback

Public Attributes

MMSoundManager.MMSoundManagerTracks Track
 the track to fade the volume on More...
 
float FadeDuration = 1f
 the duration of the fade, in seconds More...
 
float FinalVolume = MMSoundManagerSettings._minimalVolume
 the volume to reach at the end of the fade More...
 
MMTweenType FadeTween = new MMTweenType(MMTween.MMTweenCurve.EaseInOutQuartic)
 the tween to operate the fade on More...
 

Static Public Attributes

static bool FeedbackTypeAuthorized = true
 a static bool used to disable all feedbacks of this type at once More...
 

Protected Member Functions

override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play, triggers a fade event, meant to be caught by the MMSoundManager More...
 
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On stop, we stop our fade via a fade event More...
 

Properties

override float FeedbackDuration [get]
 sets the inspector color for this feedback More...
 

Additional Inherited Members

Detailed Description

This feedback will let you fade all the sounds on a specific track at once. You will need a MMSoundManager in your scene for this to work.

Member Function Documentation

◆ CustomPlayFeedback()

override void MoreMountains.Feedbacks.MMF_MMSoundManagerTrackFade.CustomPlayFeedback ( Vector3  position,
float  feedbacksIntensity = 1.0f 
)
protectedvirtual

On Play, triggers a fade event, meant to be caught by the MMSoundManager

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

override void MoreMountains.Feedbacks.MMF_MMSoundManagerTrackFade.CustomStopFeedback ( Vector3  position,
float  feedbacksIntensity = 1.0f 
)
protectedvirtual

On stop, we stop our fade via a fade event

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ FadeDuration

float MoreMountains.Feedbacks.MMF_MMSoundManagerTrackFade.FadeDuration = 1f

the duration of the fade, in seconds

◆ FadeTween

MMTweenType MoreMountains.Feedbacks.MMF_MMSoundManagerTrackFade.FadeTween = new MMTweenType(MMTween.MMTweenCurve.EaseInOutQuartic)

the tween to operate the fade on

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_MMSoundManagerTrackFade.FeedbackTypeAuthorized = true
static

a static bool used to disable all feedbacks of this type at once

◆ FinalVolume

float MoreMountains.Feedbacks.MMF_MMSoundManagerTrackFade.FinalVolume = MMSoundManagerSettings._minimalVolume

the volume to reach at the end of the fade

◆ Track

MMSoundManager.MMSoundManagerTracks MoreMountains.Feedbacks.MMF_MMSoundManagerTrackFade.Track

the track to fade the volume on

Property Documentation

◆ FeedbackDuration

override float MoreMountains.Feedbacks.MMF_MMSoundManagerTrackFade.FeedbackDuration
get

sets the inspector color for this feedback

the duration of this feedback is the duration of the fade


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