Feel  3.16
The best way to improve your game's feel and make it extra juicy
MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField Class Reference

This feedback allows you to control depth of field focus distance, aperture and focal length over time. It requires you have in your scene an object with a PostProcessVolume with Depth of Field active, and a MMDepthOfFieldShaker component. More...

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

Public Attributes

override bool HasChannel => true
 
override bool HasRandomness => true
 
float ShakeDuration = 2f
 the duration of the shake, in seconds More...
 
bool RelativeValues = true
 whether or not to add to the initial values 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...
 
AnimationCurve ShakeFocusDistance = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0))
 the curve used to animate the focus distance value on More...
 
float RemapFocusDistanceZero = 4f
 the value to remap the curve's 0 to More...
 
float RemapFocusDistanceOne = 50f
 the value to remap the curve's 1 to More...
 
AnimationCurve ShakeAperture = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0))
 the curve used to animate the aperture value on More...
 
float RemapApertureZero = 0.6f
 the value to remap the curve's 0 to More...
 
float RemapApertureOne = 0.2f
 the value to remap the curve's 1 to More...
 
AnimationCurve ShakeFocalLength = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0))
 the curve used to animate the focal length value on More...
 
float RemapFocalLengthZero = 27.5f
 the value to remap the curve's 0 to More...
 
float RemapFocalLengthOne = 27.5f
 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 DoF shake More...
 
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 On stop we stop our transition More...
 
override void CustomRestoreInitialValues ()
 On restore, we put our object back at its initial position More...
 

Properties

override float FeedbackDuration [get, set]
 sets the inspector color for this feedback More...
 

Additional Inherited Members

Detailed Description

This feedback allows you to control depth of field focus distance, aperture and focal length over time. It requires you have in your scene an object with a PostProcessVolume with Depth of Field active, and a MMDepthOfFieldShaker component.

Member Function Documentation

◆ CustomPlayFeedback()

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

Triggers a DoF shake

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomRestoreInitialValues()

override void MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.CustomRestoreInitialValues ( )
protectedvirtual

On restore, we put our object back at its initial position

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

override void MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.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

◆ FeedbackTypeAuthorized

bool MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.FeedbackTypeAuthorized = true
static

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

◆ HasChannel

override bool MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.HasChannel => true

◆ HasRandomness

override bool MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.HasRandomness => true

◆ RelativeValues

bool MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.RelativeValues = true

whether or not to add to the initial values

◆ RemapApertureOne

float MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.RemapApertureOne = 0.2f

the value to remap the curve's 1 to

◆ RemapApertureZero

float MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.RemapApertureZero = 0.6f

the value to remap the curve's 0 to

◆ RemapFocalLengthOne

float MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.RemapFocalLengthOne = 27.5f

the value to remap the curve's 1 to

◆ RemapFocalLengthZero

float MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.RemapFocalLengthZero = 27.5f

the value to remap the curve's 0 to

◆ RemapFocusDistanceOne

float MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.RemapFocusDistanceOne = 50f

the value to remap the curve's 1 to

◆ RemapFocusDistanceZero

float MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.RemapFocusDistanceZero = 4f

the value to remap the curve's 0 to

◆ ResetShakerValuesAfterShake

bool MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.ResetShakerValuesAfterShake = true

whether or not to reset shaker values after shake

◆ ResetTargetValuesAfterShake

bool MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.ResetTargetValuesAfterShake = true

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

◆ ShakeAperture

AnimationCurve MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.ShakeAperture = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0))

the curve used to animate the aperture value on

◆ ShakeDuration

float MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.ShakeDuration = 2f

the duration of the shake, in seconds

◆ ShakeFocalLength

AnimationCurve MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.ShakeFocalLength = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0))

the curve used to animate the focal length value on

◆ ShakeFocusDistance

AnimationCurve MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.ShakeFocusDistance = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0))

the curve used to animate the focus distance value on

Property Documentation

◆ FeedbackDuration

override float MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.FeedbackDuration
getset

sets the inspector color for this feedback

the duration of this feedback is the duration of the shake


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