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

This feedback allows you to control lens distortion intensity over time. It requires you have in your scene an object with a PostProcessVolume with Lens Distortion active, and a MMLensDistortionShaker component. More...

Inheritance diagram for MoreMountains.FeedbacksForThirdParty.MMF_LensDistortion:
MoreMountains.Feedbacks.MMF_Feedback

Public Attributes

float Duration = 0.5f
 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 RelativeIntensity = false
 whether or not to add to the initial intensity value More...
 
AnimationCurve Intensity
 the curve to animate the intensity on More...
 
float RemapIntensityZero = 0f
 the value to remap the curve's 0 to More...
 
float RemapIntensityOne = 40f
 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 a lens distortion shake 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 allows you to control lens distortion intensity over time. It requires you have in your scene an object with a PostProcessVolume with Lens Distortion active, and a MMLensDistortionShaker component.

Member Function Documentation

◆ CustomPlayFeedback()

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

Triggers a lens distortion shake

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

override void MoreMountains.FeedbacksForThirdParty.MMF_LensDistortion.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.FeedbacksForThirdParty.MMF_LensDistortion.Duration = 0.5f

the duration of the shake in seconds

◆ FeedbackTypeAuthorized

bool MoreMountains.FeedbacksForThirdParty.MMF_LensDistortion.FeedbackTypeAuthorized = true
static

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

◆ Intensity

AnimationCurve MoreMountains.FeedbacksForThirdParty.MMF_LensDistortion.Intensity
Initial value:
= new AnimationCurve(new Keyframe(0, 0),
new Keyframe(0.2f, 1),
new Keyframe(0.25f, -1),
new Keyframe(0.35f, 0.7f),
new Keyframe(0.4f, -0.7f),
new Keyframe(0.6f, 0.3f),
new Keyframe(0.65f, -0.3f),
new Keyframe(0.8f, 0.1f),
new Keyframe(0.85f, -0.1f),
new Keyframe(1, 0))

the curve to animate the intensity on

◆ RelativeIntensity

bool MoreMountains.FeedbacksForThirdParty.MMF_LensDistortion.RelativeIntensity = false

whether or not to add to the initial intensity value

◆ RemapIntensityOne

float MoreMountains.FeedbacksForThirdParty.MMF_LensDistortion.RemapIntensityOne = 40f

the value to remap the curve's 1 to

◆ RemapIntensityZero

float MoreMountains.FeedbacksForThirdParty.MMF_LensDistortion.RemapIntensityZero = 0f

the value to remap the curve's 0 to

◆ ResetShakerValuesAfterShake

bool MoreMountains.FeedbacksForThirdParty.MMF_LensDistortion.ResetShakerValuesAfterShake = true

whether or not to reset shaker values after shake

◆ ResetTargetValuesAfterShake

bool MoreMountains.FeedbacksForThirdParty.MMF_LensDistortion.ResetTargetValuesAfterShake = true

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

Property Documentation

◆ FeedbackDuration

override float MoreMountains.FeedbacksForThirdParty.MMF_LensDistortion.FeedbackDuration
getset

sets the inspector color for this feedback

the duration of this feedback is the duration of the shake

◆ HasChannel

override bool MoreMountains.FeedbacksForThirdParty.MMF_LensDistortion.HasChannel
get

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