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

This feedback will let you change the speed of a target animator, either once, or instantly and then reset it, or interpolate it over time More...

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

Public Types

enum  SpeedModes { SpeedModes.Once, SpeedModes.InstantThenReset, SpeedModes.OverTime }
 

Public Attributes

override bool HasRandomness => true
 sets the inspector color for this feedback More...
 
override bool CanForceInitialValue => true
 
override bool HasAutomatedTargetAcquisition => true
 
Animator BoundAnimator
 the animator whose parameters you want to update More...
 
SpeedModes Mode = SpeedModes.Once
 whether to change the speed of the target animator once, instantly and reset it later, or have it change over time More...
 
float NewSpeedMin = 0f
 the new minimum speed at which to set the animator - value will be randomized between min and max More...
 
float NewSpeedMax = 0f
 the new maximum speed at which to set the animator - value will be randomized between min and max More...
 
float Duration = 1f
 when in instant then reset or over time modes, the duration of the effect More...
 
AnimationCurve Curve = new AnimationCurve(new Keyframe(0, 0f), new Keyframe(0.5f, 1f), new Keyframe(1, 0f))
 when in over time mode, the curve against which to evaluate the new speed 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 AutomateTargetAcquisition ()
 A method meant to be implemented per feedback letting you specify what happens (usually setting a target) More...
 
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play, checks if an animator is bound and triggers parameters More...
 
virtual IEnumerator ChangeSpeedCo ()
 A coroutine used in ForDuration mode More...
 
virtual float DetermineNewSpeed ()
 Determines the new speed for the target animator More...
 
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On stop, turns the bool parameter to false More...
 
override void CustomRestoreInitialValues ()
 On restore, we restore our initial state More...
 

Protected Attributes

Coroutine _coroutine
 
float _initialSpeed
 
float _startedAt
 

Additional Inherited Members

Detailed Description

This feedback will let you change the speed of a target animator, either once, or instantly and then reset it, or interpolate it over time

Member Enumeration Documentation

◆ SpeedModes

Enumerator
Once 
InstantThenReset 
OverTime 

Member Function Documentation

◆ AutomateTargetAcquisition()

override void MoreMountains.Feedbacks.MMF_AnimatorSpeed.AutomateTargetAcquisition ( )
protectedvirtual

A method meant to be implemented per feedback letting you specify what happens (usually setting a target)

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ ChangeSpeedCo()

virtual IEnumerator MoreMountains.Feedbacks.MMF_AnimatorSpeed.ChangeSpeedCo ( )
protectedvirtual

A coroutine used in ForDuration mode

Returns

◆ CustomPlayFeedback()

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

On Play, checks if an animator is bound and triggers parameters

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomRestoreInitialValues()

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

On restore, we restore our initial state

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

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

On stop, turns the bool parameter to false

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ DetermineNewSpeed()

virtual float MoreMountains.Feedbacks.MMF_AnimatorSpeed.DetermineNewSpeed ( )
protectedvirtual

Determines the new speed for the target animator

Returns

Member Data Documentation

◆ _coroutine

Coroutine MoreMountains.Feedbacks.MMF_AnimatorSpeed._coroutine
protected

◆ _initialSpeed

float MoreMountains.Feedbacks.MMF_AnimatorSpeed._initialSpeed
protected

◆ _startedAt

float MoreMountains.Feedbacks.MMF_AnimatorSpeed._startedAt
protected

◆ BoundAnimator

Animator MoreMountains.Feedbacks.MMF_AnimatorSpeed.BoundAnimator

the animator whose parameters you want to update

◆ CanForceInitialValue

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

◆ Curve

AnimationCurve MoreMountains.Feedbacks.MMF_AnimatorSpeed.Curve = new AnimationCurve(new Keyframe(0, 0f), new Keyframe(0.5f, 1f), new Keyframe(1, 0f))

when in over time mode, the curve against which to evaluate the new speed

◆ Duration

float MoreMountains.Feedbacks.MMF_AnimatorSpeed.Duration = 1f

when in instant then reset or over time modes, the duration of the effect

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_AnimatorSpeed.FeedbackTypeAuthorized = true
static

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

◆ HasAutomatedTargetAcquisition

override bool MoreMountains.Feedbacks.MMF_AnimatorSpeed.HasAutomatedTargetAcquisition => true

◆ HasRandomness

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

sets the inspector color for this feedback

◆ Mode

SpeedModes MoreMountains.Feedbacks.MMF_AnimatorSpeed.Mode = SpeedModes.Once

whether to change the speed of the target animator once, instantly and reset it later, or have it change over time

◆ NewSpeedMax

float MoreMountains.Feedbacks.MMF_AnimatorSpeed.NewSpeedMax = 0f

the new maximum speed at which to set the animator - value will be randomized between min and max

◆ NewSpeedMin

float MoreMountains.Feedbacks.MMF_AnimatorSpeed.NewSpeedMin = 0f

the new minimum speed at which to set the animator - value will be randomized between min and max


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