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

This feedback lets you tweak the softness of a TMP text over time More...

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

Public Attributes

override bool HasCustomInspectors => true
 sets the inspector color for this feedback More...
 
bool RelativeValues = true
 whether or not values should be relative More...
 
MMFeedbackBase.Modes Mode = MMFeedbackBase.Modes.OverTime
 the selected mode More...
 
float Duration = 0.5f
 the duration of the feedback, in seconds More...
 
MMTweenType SoftnessCurve = new MMTweenType(new AnimationCurve(new Keyframe(0, 0f), new Keyframe(0.3f, 1f), new Keyframe(1, 0f)))
 the curve to tween on More...
 
float RemapZero = 0f
 the value to remap the curve's 0 to More...
 
float RemapOne = 1f
 the value to remap the curve's 1 to More...
 
float InstantSoftness
 the value to move to in instant mode More...
 
bool AllowAdditivePlays = false
 if this is true, calling that feedback will trigger it, even if it's in progress. If it's false, it'll prevent any new Play until the current one is over 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 CustomInitialization (MMF_Player owner)
 On init we grab our initial softness More...
 
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play we animate our softness More...
 
virtual IEnumerator ApplyValueOverTime ()
 
virtual void SetValue (float time)
 
override void CustomRestoreInitialValues ()
 On restore, we put our object back at its initial position More...
 

Protected Attributes

float _initialSoftness
 
Coroutine _coroutine
 

Properties

override float? FeedbackDuration [get, set]
 the duration of this feedback is the duration of the transition, or 0 if instant More...
 

Additional Inherited Members

Detailed Description

This feedback lets you tweak the softness of a TMP text over time

Member Function Documentation

◆ ApplyValueOverTime()

virtual IEnumerator MoreMountains.Feedbacks.MMF_TMPSoftness.ApplyValueOverTime ( )
protectedvirtual

◆ CustomInitialization()

override void MoreMountains.Feedbacks.MMF_TMPSoftness.CustomInitialization ( MMF_Player  owner)
protectedvirtual

On init we grab our initial softness

Parameters
owner

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomPlayFeedback()

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

On Play we animate our softness

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomRestoreInitialValues()

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

On restore, we put our object back at its initial position

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ SetValue()

virtual void MoreMountains.Feedbacks.MMF_TMPSoftness.SetValue ( float  time)
protectedvirtual

Member Data Documentation

◆ _coroutine

Coroutine MoreMountains.Feedbacks.MMF_TMPSoftness._coroutine
protected

◆ _initialSoftness

float MoreMountains.Feedbacks.MMF_TMPSoftness._initialSoftness
protected

◆ AllowAdditivePlays

bool MoreMountains.Feedbacks.MMF_TMPSoftness.AllowAdditivePlays = false

if this is true, calling that feedback will trigger it, even if it's in progress. If it's false, it'll prevent any new Play until the current one is over

◆ Duration

float MoreMountains.Feedbacks.MMF_TMPSoftness.Duration = 0.5f

the duration of the feedback, in seconds

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_TMPSoftness.FeedbackTypeAuthorized = true
static

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

◆ HasCustomInspectors

override bool MoreMountains.Feedbacks.MMF_TMPSoftness.HasCustomInspectors => true

sets the inspector color for this feedback

◆ InstantSoftness

float MoreMountains.Feedbacks.MMF_TMPSoftness.InstantSoftness

the value to move to in instant mode

◆ Mode

MMFeedbackBase.Modes MoreMountains.Feedbacks.MMF_TMPSoftness.Mode = MMFeedbackBase.Modes.OverTime

the selected mode

◆ RelativeValues

bool MoreMountains.Feedbacks.MMF_TMPSoftness.RelativeValues = true

whether or not values should be relative

◆ RemapOne

float MoreMountains.Feedbacks.MMF_TMPSoftness.RemapOne = 1f

the value to remap the curve's 1 to

◆ RemapZero

float MoreMountains.Feedbacks.MMF_TMPSoftness.RemapZero = 0f

the value to remap the curve's 0 to

◆ SoftnessCurve

MMTweenType MoreMountains.Feedbacks.MMF_TMPSoftness.SoftnessCurve = new MMTweenType(new AnimationCurve(new Keyframe(0, 0f), new Keyframe(0.3f, 1f), new Keyframe(1, 0f)))

the curve to tween on

Property Documentation

◆ FeedbackDuration

override float? MoreMountains.Feedbacks.MMF_TMPSoftness.FeedbackDuration
getset

the duration of this feedback is the duration of the transition, or 0 if instant


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