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

This feedback lets you control a camera's field of view over time. You'll need a MMCameraFieldOfViewShaker on your camera. More...

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

Public Attributes

override bool HasChannel => true
 
override bool CanForceInitialValue => true
 
override bool ForceInitialValueDelayed => true
 
override bool HasRandomness => true
 
float Duration = 2f
 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 RelativeFieldOfView = false
 whether or not to add to the initial value More...
 
AnimationCurve ShakeFieldOfView
 the curve used to animate the intensity value on More...
 
float RemapFieldOfViewZero = 60f
 the value to remap the curve's 0 to More...
 
float RemapFieldOfViewOne = 120f
 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 the corresponding coroutine More...
 
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 On stop we stop our transition More...
 
override void CustomRestoreInitialValues ()
 On restore, we restore our initial state More...
 

Properties

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

Additional Inherited Members

Detailed Description

This feedback lets you control a camera's field of view over time. You'll need a MMCameraFieldOfViewShaker on your camera.

Member Function Documentation

◆ CustomPlayFeedback()

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

Triggers the corresponding coroutine

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomRestoreInitialValues()

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

On restore, we restore our initial state

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

override void MoreMountains.Feedbacks.MMF_CameraFieldOfView.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

◆ CanForceInitialValue

override bool MoreMountains.Feedbacks.MMF_CameraFieldOfView.CanForceInitialValue => true

◆ Duration

float MoreMountains.Feedbacks.MMF_CameraFieldOfView.Duration = 2f

the duration of the shake, in seconds

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_CameraFieldOfView.FeedbackTypeAuthorized = true
static

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

◆ ForceInitialValueDelayed

override bool MoreMountains.Feedbacks.MMF_CameraFieldOfView.ForceInitialValueDelayed => true

◆ HasChannel

override bool MoreMountains.Feedbacks.MMF_CameraFieldOfView.HasChannel => true

◆ HasRandomness

override bool MoreMountains.Feedbacks.MMF_CameraFieldOfView.HasRandomness => true

◆ RelativeFieldOfView

bool MoreMountains.Feedbacks.MMF_CameraFieldOfView.RelativeFieldOfView = false

whether or not to add to the initial value

◆ RemapFieldOfViewOne

float MoreMountains.Feedbacks.MMF_CameraFieldOfView.RemapFieldOfViewOne = 120f

the value to remap the curve's 1 to

◆ RemapFieldOfViewZero

float MoreMountains.Feedbacks.MMF_CameraFieldOfView.RemapFieldOfViewZero = 60f

the value to remap the curve's 0 to

◆ ResetShakerValuesAfterShake

bool MoreMountains.Feedbacks.MMF_CameraFieldOfView.ResetShakerValuesAfterShake = true

whether or not to reset shaker values after shake

◆ ResetTargetValuesAfterShake

bool MoreMountains.Feedbacks.MMF_CameraFieldOfView.ResetTargetValuesAfterShake = true

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

◆ ShakeFieldOfView

AnimationCurve MoreMountains.Feedbacks.MMF_CameraFieldOfView.ShakeFieldOfView
Initial value:
=
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_CameraFieldOfView.FeedbackDuration
getset

sets the inspector color for this feedback

returns the duration of the feedback


The documentation for this class was generated from the following file:
MoreMountains.Tools.MMTweenDefinitionTypes.AnimationCurve
@ AnimationCurve