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

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

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

Public Attributes

float Duration = 2f
 the duration of the shake, in seconds More...
 
bool ResetShakerValuesAfterShake = true
 whether or not to reset shaker values after shake More...
 
bool ResetTargetValuesAfterShake = true
 whether or not to reset the target's values after shake More...
 
bool RelativeStereoPan = false
 whether or not to add to the initial value More...
 
AnimationCurve ShakeStereoPan = new AnimationCurve(new Keyframe(0, 0f), new Keyframe(0.3f, 1f), new Keyframe(0.6f, -1f), new Keyframe(1, 0f))
 the curve used to animate the intensity value on More...
 
float RemapStereoPanZero = 0f
 the value to remap the curve's 0 to More...
 
float RemapStereoPanOne = 1f
 the value to remap the curve's 1 to 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)
 Triggers the corresponding coroutine More...
 
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 On stop we stop our transition More...
 

Properties

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

Additional Inherited Members

Detailed Description

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

Member Function Documentation

◆ CustomPlayFeedback()

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

Triggers the corresponding coroutine

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

override void MoreMountains.Feedbacks.MMF_AudioSourceStereoPan.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_AudioSourceStereoPan.Duration = 2f

the duration of the shake, in seconds

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_AudioSourceStereoPan.FeedbackTypeAuthorized = true
static

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

◆ RelativeStereoPan

bool MoreMountains.Feedbacks.MMF_AudioSourceStereoPan.RelativeStereoPan = false

whether or not to add to the initial value

◆ RemapStereoPanOne

float MoreMountains.Feedbacks.MMF_AudioSourceStereoPan.RemapStereoPanOne = 1f

the value to remap the curve's 1 to

◆ RemapStereoPanZero

float MoreMountains.Feedbacks.MMF_AudioSourceStereoPan.RemapStereoPanZero = 0f

the value to remap the curve's 0 to

◆ ResetShakerValuesAfterShake

bool MoreMountains.Feedbacks.MMF_AudioSourceStereoPan.ResetShakerValuesAfterShake = true

whether or not to reset shaker values after shake

◆ ResetTargetValuesAfterShake

bool MoreMountains.Feedbacks.MMF_AudioSourceStereoPan.ResetTargetValuesAfterShake = true

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

◆ ShakeStereoPan

AnimationCurve MoreMountains.Feedbacks.MMF_AudioSourceStereoPan.ShakeStereoPan = new AnimationCurve(new Keyframe(0, 0f), new Keyframe(0.3f, 1f), new Keyframe(0.6f, -1f), new Keyframe(1, 0f))

the curve used to animate the intensity value on

Property Documentation

◆ FeedbackDuration

override float MoreMountains.Feedbacks.MMF_AudioSourceStereoPan.FeedbackDuration
getset

sets the inspector color for this feedback

returns the duration of the feedback

◆ HasChannel

override bool MoreMountains.Feedbacks.MMF_AudioSourceStereoPan.HasChannel
get

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