TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.Feedbacks.MMF_CameraClippingPlanes Class Reference

This feedback lets you control a camera's clipping planes over time. You'll need a MMCameraClippingPlanesShaker on your camera. More...

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

Public Attributes

float Duration = 2f
 the duration of the shake, in seconds
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
bool RelativeClippingPlanes = false
 whether or not to add to the initial value
AnimationCurve ShakeNear = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0))
 the curve used to animate the intensity value on
float RemapNearZero = 0.01f
 the value to remap the curve's 0 to
float RemapNearOne = 6.25f
 the value to remap the curve's 1 to
AnimationCurve ShakeFar = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0))
 the curve used to animate the intensity value on
float RemapFarZero = 1000f
 the value to remap the curve's 0 to
float RemapFarOne = 5000f
 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 the corresponding coroutine.
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 On stop we stop our transition.
override void CustomRestoreInitialValues ()
 On restore, we restore our initial state.

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 lets you control a camera's clipping planes over time. You'll need a MMCameraClippingPlanesShaker on your camera.

Member Function Documentation

◆ CustomPlayFeedback()

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

Triggers the corresponding coroutine.

Parameters
position
feedbacksIntensity

◆ CustomRestoreInitialValues()

override void MoreMountains.Feedbacks.MMF_CameraClippingPlanes.CustomRestoreInitialValues ( )
protectedvirtual

On restore, we restore our initial state.

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

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

the duration of the shake, in seconds

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_CameraClippingPlanes.FeedbackTypeAuthorized = true
static

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

◆ RelativeClippingPlanes

bool MoreMountains.Feedbacks.MMF_CameraClippingPlanes.RelativeClippingPlanes = false

whether or not to add to the initial value

◆ RemapFarOne

float MoreMountains.Feedbacks.MMF_CameraClippingPlanes.RemapFarOne = 5000f

the value to remap the curve's 1 to

◆ RemapFarZero

float MoreMountains.Feedbacks.MMF_CameraClippingPlanes.RemapFarZero = 1000f

the value to remap the curve's 0 to

◆ RemapNearOne

float MoreMountains.Feedbacks.MMF_CameraClippingPlanes.RemapNearOne = 6.25f

the value to remap the curve's 1 to

◆ RemapNearZero

float MoreMountains.Feedbacks.MMF_CameraClippingPlanes.RemapNearZero = 0.01f

the value to remap the curve's 0 to

◆ ResetShakerValuesAfterShake

bool MoreMountains.Feedbacks.MMF_CameraClippingPlanes.ResetShakerValuesAfterShake = true

whether or not to reset shaker values after shake

◆ ResetTargetValuesAfterShake

bool MoreMountains.Feedbacks.MMF_CameraClippingPlanes.ResetTargetValuesAfterShake = true

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

◆ ShakeFar

AnimationCurve MoreMountains.Feedbacks.MMF_CameraClippingPlanes.ShakeFar = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0))

the curve used to animate the intensity value on

◆ ShakeNear

AnimationCurve MoreMountains.Feedbacks.MMF_CameraClippingPlanes.ShakeNear = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0))

the curve used to animate the intensity value on

Property Documentation

◆ FeedbackDuration

override float MoreMountains.Feedbacks.MMF_CameraClippingPlanes.FeedbackDuration
getset

sets the inspector color for this feedback

returns the duration of the feedback

◆ HasChannel

override bool MoreMountains.Feedbacks.MMF_CameraClippingPlanes.HasChannel
get

◆ HasRandomness

override bool MoreMountains.Feedbacks.MMF_CameraClippingPlanes.HasRandomness
get

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