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

A feedback that will allow you to change the zoom of a (3D) camera when played More...

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

Public Attributes

override bool HasChannel => true
 
override bool CanForceInitialValue => true
 
MMCameraZoomModes ZoomMode = MMCameraZoomModes.For
 the zoom mode (for : forward for TransitionDuration, static for Duration, backwards for TransitionDuration) More...
 
float ZoomFieldOfView = 30f
 the target field of view More...
 
float ZoomTransitionDuration = 0.05f
 the zoom transition duration More...
 
float ZoomDuration = 0.1f
 the duration for which the zoom is at max zoom More...
 
bool RelativeFieldOfView = false
 whether or not ZoomFieldOfView should add itself to the current camera's field of view value More...
 
MMTweenType ZoomTween = new MMTweenType( new AnimationCurve(new Keyframe(0f, 0f), new Keyframe(1f, 1f)))
 the animation curve to apply to the zoom transition 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)
 On Play, triggers a zoom event 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

A feedback that will allow you to change the zoom of a (3D) camera when played

Member Function Documentation

◆ CustomPlayFeedback()

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

On Play, triggers a zoom event

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomRestoreInitialValues()

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

On restore, we restore our initial state

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

override void MoreMountains.Feedbacks.MMF_CameraZoom.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_CameraZoom.CanForceInitialValue => true

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_CameraZoom.FeedbackTypeAuthorized = true
static

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

◆ HasChannel

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

◆ RelativeFieldOfView

bool MoreMountains.Feedbacks.MMF_CameraZoom.RelativeFieldOfView = false

whether or not ZoomFieldOfView should add itself to the current camera's field of view value

◆ ZoomDuration

float MoreMountains.Feedbacks.MMF_CameraZoom.ZoomDuration = 0.1f

the duration for which the zoom is at max zoom

◆ ZoomFieldOfView

float MoreMountains.Feedbacks.MMF_CameraZoom.ZoomFieldOfView = 30f

the target field of view

◆ ZoomMode

MMCameraZoomModes MoreMountains.Feedbacks.MMF_CameraZoom.ZoomMode = MMCameraZoomModes.For

the zoom mode (for : forward for TransitionDuration, static for Duration, backwards for TransitionDuration)

◆ ZoomTransitionDuration

float MoreMountains.Feedbacks.MMF_CameraZoom.ZoomTransitionDuration = 0.05f

the zoom transition duration

◆ ZoomTween

MMTweenType MoreMountains.Feedbacks.MMF_CameraZoom.ZoomTween = new MMTweenType( new AnimationCurve(new Keyframe(0f, 0f), new Keyframe(1f, 1f)))

the animation curve to apply to the zoom transition

Property Documentation

◆ FeedbackDuration

override float MoreMountains.Feedbacks.MMF_CameraZoom.FeedbackDuration
getset

sets the inspector color for this feedback

the duration of this feedback is the duration of the zoom


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