TopDown Engine  v3.6
MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField_URP Class Reference

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

Inheritance diagram for MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField_URP:
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 = 0f
 the value to remap the curve's 0 to More...
 
float RemapFocusDistanceOne = 3f
 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 = .1f
 the value to remap the curve's 0 to More...
 
float RemapApertureOne = 32f
 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 = 0f
 the value to remap the curve's 0 to More...
 
float RemapFocalLengthOne = 0f
 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 depth of field event 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 URP depth of field focus distance, aperture and focal length over time. It requires you have in your scene an object with a Volume with Depth of Field active, and a MMDepthOfFieldShaker_URP component.

Member Function Documentation

◆ CustomPlayFeedback()

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

Triggers a depth of field event

Parameters
position
attenuation

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomRestoreInitialValues()

override void MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField_URP.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_URP.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_URP.FeedbackTypeAuthorized = true
static

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

◆ HasChannel

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

◆ HasRandomness

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

◆ RelativeValues

bool MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField_URP.RelativeValues = true

whether or not to add to the initial values

◆ RemapApertureOne

float MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField_URP.RemapApertureOne = 32f

the value to remap the curve's 1 to

◆ RemapApertureZero

float MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField_URP.RemapApertureZero = .1f

the value to remap the curve's 0 to

◆ RemapFocalLengthOne

float MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField_URP.RemapFocalLengthOne = 0f

the value to remap the curve's 1 to

◆ RemapFocalLengthZero

float MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField_URP.RemapFocalLengthZero = 0f

the value to remap the curve's 0 to

◆ RemapFocusDistanceOne

float MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField_URP.RemapFocusDistanceOne = 3f

the value to remap the curve's 1 to

◆ RemapFocusDistanceZero

float MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField_URP.RemapFocusDistanceZero = 0f

the value to remap the curve's 0 to

◆ ResetShakerValuesAfterShake

bool MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField_URP.ResetShakerValuesAfterShake = true

whether or not to reset shaker values after shake

◆ ResetTargetValuesAfterShake

bool MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField_URP.ResetTargetValuesAfterShake = true

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

◆ ShakeAperture

AnimationCurve MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField_URP.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_URP.ShakeDuration = 2f

the duration of the shake, in seconds

◆ ShakeFocalLength

AnimationCurve MoreMountains.FeedbacksForThirdParty.MMF_DepthOfField_URP.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_URP.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_URP.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: