Feel 5.9.1
The best way to improve your game's feel and make it extra juicy
Loading...
Searching...
No Matches
MoreMountains.Feedbacks.MMF_AudioSourceVolume Class Reference

This feedback lets you control the volume of a target AudioSource over time. More...

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

Public Attributes

float Duration = 2f
 the duration of the shake, in seconds
bool ResetShakerValuesAfterShake = true
 whether or not to reset shaker values after shake
bool ResetTargetValuesAfterShake = true
 whether or not to reset the target's values after shake
bool RelativeVolume = false
 whether or not to add to the initial value
AnimationCurve VolumeTween = new AnimationCurve(new Keyframe(0, 1f), new Keyframe(0.5f, 0f), new Keyframe(1, 1f))
 the curve used to animate the intensity value on
float RemapVolumeZero = 0f
 the value to remap the curve's 0 to
float RemapVolumeOne = 1f
 the value to remap the curve's 1 to

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)
 Triggers the corresponding coroutine.
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 On stop we stop our transition.
override void CustomRestoreInitialValues ()
 On restore, we restore our initial state.

Properties

override float FeedbackDuration [get, set]
 sets the inspector color for this feedback
override bool HasChannel [get]
override bool HasRandomness [get]

Additional Inherited Members

Detailed Description

This feedback lets you control the volume of a target AudioSource over time.

Member Function Documentation

◆ CustomPlayFeedback()

override void MoreMountains.Feedbacks.MMF_AudioSourceVolume.CustomPlayFeedback ( Vector3 position,
float feedbacksIntensity = 1::0f )
protected

Triggers the corresponding coroutine.

Parameters
position
feedbacksIntensity

◆ CustomRestoreInitialValues()

override void MoreMountains.Feedbacks.MMF_AudioSourceVolume.CustomRestoreInitialValues ( )
protectedvirtual

On restore, we restore our initial state.

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

override void MoreMountains.Feedbacks.MMF_AudioSourceVolume.CustomStopFeedback ( Vector3 position,
float feedbacksIntensity = 1 )
protectedvirtual

On stop we stop our transition.

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ Duration

float MoreMountains.Feedbacks.MMF_AudioSourceVolume.Duration = 2f

the duration of the shake, in seconds

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_AudioSourceVolume.FeedbackTypeAuthorized = true
static

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

◆ RelativeVolume

bool MoreMountains.Feedbacks.MMF_AudioSourceVolume.RelativeVolume = false

whether or not to add to the initial value

◆ RemapVolumeOne

float MoreMountains.Feedbacks.MMF_AudioSourceVolume.RemapVolumeOne = 1f

the value to remap the curve's 1 to

◆ RemapVolumeZero

float MoreMountains.Feedbacks.MMF_AudioSourceVolume.RemapVolumeZero = 0f

the value to remap the curve's 0 to

◆ ResetShakerValuesAfterShake

bool MoreMountains.Feedbacks.MMF_AudioSourceVolume.ResetShakerValuesAfterShake = true

whether or not to reset shaker values after shake

◆ ResetTargetValuesAfterShake

bool MoreMountains.Feedbacks.MMF_AudioSourceVolume.ResetTargetValuesAfterShake = true

whether or not to reset the target's values after shake

◆ VolumeTween

AnimationCurve MoreMountains.Feedbacks.MMF_AudioSourceVolume.VolumeTween = new AnimationCurve(new Keyframe(0, 1f), new Keyframe(0.5f, 0f), new Keyframe(1, 1f))

the curve used to animate the intensity value on

Property Documentation

◆ FeedbackDuration

override float MoreMountains.Feedbacks.MMF_AudioSourceVolume.FeedbackDuration
getset

sets the inspector color for this feedback

returns the duration of the feedback

◆ HasChannel

override bool MoreMountains.Feedbacks.MMF_AudioSourceVolume.HasChannel
get

◆ HasRandomness

override bool MoreMountains.Feedbacks.MMF_AudioSourceVolume.HasRandomness
get

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