TopDown Engine v4.5
Loading...
Searching...
No Matches
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
float FadeDuration = 1f
 the duration of the fade, in seconds
float FinalVolume = MMSoundManagerSettings._minimalVolume
 the volume towards which to fade
MMTweenType FadeTween = new MMTweenType(MMTween.MMTweenCurve.EaseInOutQuartic)
 the tween to apply over the fade

Static Public Attributes

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

Protected Member Functions

override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On play, we start our fade via a fade event.
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On stop, we stop our fade via a fade event.

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 )
protected

On play, we start our fade via a fade event.

Parameters
position
feedbacksIntensity

◆ CustomStopFeedback()

override void MoreMountains.Feedbacks.MMF_MMSoundManagerSoundFade.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

◆ _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:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/ThirdParty/MoreMountains/MMFeedbacks/MMFeedbacksForThirdParty/MMTools/Feedbacks/MMF_MMSoundManagerSoundFade.cs