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

This feedback will send a shake event when played. More...

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

Public Member Functions

override void AutomaticShakerSetup ()
 Automatically tries to add a camera rig if none are present.

Public Attributes

bool RepeatUntilStopped = false
 whether or not this shake should repeat forever, until stopped
MMCameraShakeProperties CameraShakeProperties = new MMCameraShakeProperties(0.1f, 0.2f, 40f)
 the properties of the shake (duration, intensity, frequenc)

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, sends a shake camera event.
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 This method describes what happens when the feedback gets stopped.

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 will send a shake event when played.

Member Function Documentation

◆ AutomaticShakerSetup()

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

Automatically tries to add a camera rig if none are present.

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomPlayFeedback()

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

On Play, sends a shake camera event.

Parameters
position
feedbacksIntensity

◆ CustomStopFeedback()

override void MoreMountains.Feedbacks.MMF_CameraShake.CustomStopFeedback ( Vector3 position,
float feedbacksIntensity = 1 )
protectedvirtual

This method describes what happens when the feedback gets stopped.

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ CameraShakeProperties

MMCameraShakeProperties MoreMountains.Feedbacks.MMF_CameraShake.CameraShakeProperties = new MMCameraShakeProperties(0.1f, 0.2f, 40f)

the properties of the shake (duration, intensity, frequenc)

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_CameraShake.FeedbackTypeAuthorized = true
static

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

◆ RepeatUntilStopped

bool MoreMountains.Feedbacks.MMF_CameraShake.RepeatUntilStopped = false

whether or not this shake should repeat forever, until stopped

Property Documentation

◆ FeedbackDuration

override float MoreMountains.Feedbacks.MMF_CameraShake.FeedbackDuration
getset

sets the inspector color for this feedback

the duration of this feedback is the duration of the shake

◆ HasChannel

override bool MoreMountains.Feedbacks.MMF_CameraShake.HasChannel
get

◆ HasRandomness

override bool MoreMountains.Feedbacks.MMF_CameraShake.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_CameraShake.cs