Infinite Runner Engine v1.9
Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MoreMountains.Feedbacks.MMF_MMSoundManagerSoundFade Class Reference

This feedback lets you trigger fades on a specific sound via the MMSoundManager. You will need a MMSoundManager in your scene for this to work. More...

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

Public Attributes

int SoundID = 0
 sets the inspector color for this feedback More...
 
float FadeDuration = 1f
 the duration of the fade, in seconds More...
 
float FinalVolume = MMSoundManagerSettings._minimalVolume
 the volume towards which to fade More...
 
MMTweenType FadeTween = new MMTweenType(MMTween.MMTweenCurve.EaseInOutQuartic)
 the tween to apply over the fade 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, we start our fade via a fade event More...
 

Protected Attributes

AudioSource _targetAudioSource
 

Additional Inherited Members

Detailed Description

This feedback lets you trigger fades on a specific sound via the MMSoundManager. You will need a MMSoundManager in your scene for this to work.

Member Function Documentation

◆ CustomPlayFeedback()

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

On play, we start our fade via a fade event

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ _targetAudioSource

AudioSource MoreMountains.Feedbacks.MMF_MMSoundManagerSoundFade._targetAudioSource
protected

◆ FadeDuration

float MoreMountains.Feedbacks.MMF_MMSoundManagerSoundFade.FadeDuration = 1f

the duration of the fade, in seconds

◆ FadeTween

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

the tween to apply over the fade

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSoundFade.FeedbackTypeAuthorized = true
static

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

◆ FinalVolume

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

the volume towards which to fade

◆ SoundID

int MoreMountains.Feedbacks.MMF_MMSoundManagerSoundFade.SoundID = 0

sets the inspector color for this feedback

the ID of the sound you want to fade. Has to match the ID you specified when playing the sound initially


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