Infinite Runner Engine v1.9
Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
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

TMP_Text TargetTMPText
 the TMP_Text component to control 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...
 

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)
 

Protected Attributes

float _initialSoftness
 
Coroutine _coroutine
 

Properties

override float? FeedbackDuration [getset]
 sets the inspector color for this feedback 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.

◆ 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

◆ 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

◆ TargetTMPText

TMP_Text MoreMountains.Feedbacks.MMF_TMPSoftness.TargetTMPText

the TMP_Text component to control

Property Documentation

◆ FeedbackDuration

override float? MoreMountains.Feedbacks.MMF_TMPSoftness.FeedbackDuration
getset

sets the inspector color for this feedback

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: