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

This feedback lets you control the contents of a target Text over time More...

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

Public Types

enum  ColorModes { ColorModes.Instant, ColorModes.Gradient, ColorModes.Interpolate }
 

Public Attributes

override bool HasAutomatedTargetAcquisition => true
 sets the inspector color for this feedback More...
 
Text TargetText
 the Text component to control More...
 
string NewText = "Hello World"
 the new text to replace the old one with 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 we change the text of our target TMPText More...
 
override void CustomRestoreInitialValues ()
 On restore, we put our object back at its initial position More...
 

Protected Attributes

string _initialText
 

Additional Inherited Members

Detailed Description

This feedback lets you control the contents of a target Text over time

Member Enumeration Documentation

◆ ColorModes

Enumerator
Instant 
Gradient 
Interpolate 

Member Function Documentation

◆ AutomateTargetAcquisition()

override void MoreMountains.Feedbacks.MMF_Text.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.

◆ CustomPlayFeedback()

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

On play we change the text of our target TMPText

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomRestoreInitialValues()

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

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

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ _initialText

string MoreMountains.Feedbacks.MMF_Text._initialText
protected

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_Text.FeedbackTypeAuthorized = true
static

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

◆ HasAutomatedTargetAcquisition

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

sets the inspector color for this feedback

◆ NewText

string MoreMountains.Feedbacks.MMF_Text.NewText = "Hello World"

the new text to replace the old one with

◆ TargetText

Text MoreMountains.Feedbacks.MMF_Text.TargetText

the Text component to control


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