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

override void AutomaticShakerSetup ()
 Automatically tries to add a MMCameraZoom to the main camera, if none are present.

Public Attributes

MMCameraZoomModes ZoomMode = MMCameraZoomModes.For
 the zoom mode (for : forward for TransitionDuration, static for Duration, backwards for TransitionDuration)
float ZoomFieldOfView = 30f
 the target field of view
float ZoomTransitionDuration = 0.05f
 the zoom transition duration
float ZoomDuration = 0.1f
 the duration for which the zoom is at max zoom
bool RelativeFieldOfView = false
 whether or not ZoomFieldOfView should add itself to the current camera's field of view value
MMTweenType ZoomTween = new MMTweenType( new AnimationCurve(new Keyframe(0f, 0f), new Keyframe(1f, 1f)))
 the animation curve to apply to the zoom transition

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)
 On Play, triggers a zoom event.
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 CanForceInitialValue [get]

Additional Inherited Members

Detailed Description

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

Member Function Documentation

◆ AutomaticShakerSetup()

override void MoreMountains.Feedbacks.MMF_CameraZoom.AutomaticShakerSetup ( )
virtual

Automatically tries to add a MMCameraZoom to the main camera, if none are present.

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomPlayFeedback()

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

On Play, triggers a zoom event.

Parameters
position
feedbacksIntensity

◆ 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

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_CameraZoom.FeedbackTypeAuthorized = true
static

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

◆ 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

◆ CanForceInitialValue

override bool MoreMountains.Feedbacks.MMF_CameraZoom.CanForceInitialValue
get

◆ 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

◆ HasChannel

override bool MoreMountains.Feedbacks.MMF_CameraZoom.HasChannel
get

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