TopDown Engine v4.5
Loading...
Searching...
No Matches
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 Member Functions

override void AutomaticShakerSetup ()
 Automaticall sets up the post processing profile and shaker.

Public Attributes

float ShakeDuration = 2f
 the duration of the shake, in seconds
bool RelativeValues = true
 whether or not to add to the initial values
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
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
float RemapFocusDistanceZero = 4f
 the value to remap the curve's 0 to
float RemapFocusDistanceOne = 50f
 the value to remap the curve's 1 to
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
float RemapApertureZero = 0.6f
 the value to remap the curve's 0 to
float RemapApertureOne = 0.2f
 the value to remap the curve's 1 to
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
float RemapFocalLengthZero = 27.5f
 the value to remap the curve's 0 to
float RemapFocalLengthOne = 27.5f
 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 a DoF shake.
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 On stop we stop our transition.
override void CustomRestoreInitialValues ()
 On restore, we put our object back at its initial position.

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

◆ AutomaticShakerSetup()

override void MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.AutomaticShakerSetup ( )
virtual

Automaticall sets up the post processing profile and shaker.

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomPlayFeedback()

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

Triggers a DoF shake.

Parameters
position
feedbacksIntensity

◆ 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

◆ 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

◆ HasChannel

override bool MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.HasChannel
get

◆ HasRandomness

override bool MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField.HasRandomness
get

The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/ThirdParty/MoreMountains/MMFeedbacks/MMFeedbacksForThirdParty/PostProcessing/Feedbacks/MMF_DepthOfField.cs