Infinite Runner Engine v1.9
Public Types | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
MoreMountains.Feedbacks.MMF_TMPTextReveal Class Reference

This feedback will let you reveal words, lines, or characters in a target TMP, one at a time More...

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

Public Types

enum  RevealModes { Character , Lines , Words }
 the possible ways to reveal the text More...
 
enum  DurationModes { Interval , TotalDuration }
 whether to define duration by the time interval between two unit reveals, or by the total duration the reveal should take More...
 

Public Attributes

TMP_Text TargetTMPText
 the target TMP_Text component we want to change the text on More...
 
bool ReplaceText = false
 whether or not to replace the current TMP target's text on play More...
 
string NewText = "Hello World"
 the new text to replace the old one with More...
 
RevealModes RevealMode = RevealModes.Character
 the selected way to reveal the text (character by character, word by word, or line by line) More...
 
DurationModes DurationMode = DurationModes.Interval
 whether to define duration by the time interval between two unit reveals, or by the total duration the reveal should take More...
 
float IntervalBetweenReveals = 0.05f
 the interval (in seconds) between two reveals More...
 
float RevealDuration = 1f
 the total duration of the text reveal, in seconds 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 CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On play we change the text of our target TMPText More...
 
virtual IEnumerator RevealCharacters ()
 Reveals characters one at a time More...
 
virtual IEnumerator RevealLines ()
 Reveals lines one at a time More...
 
virtual IEnumerator RevealWords ()
 Reveals words one at a time More...
 
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 Stops the animation if needed More...
 
int RichTextLength (string richText)
 Returns the length of a rich text, excluding its tags More...
 

Protected Attributes

float _delay
 
Coroutine _coroutine
 
int _richTextLength
 

Properties

override float FeedbackDuration [getset]
 the duration of this feedback More...
 

Additional Inherited Members

Detailed Description

This feedback will let you reveal words, lines, or characters in a target TMP, one at a time

Member Enumeration Documentation

◆ DurationModes

whether to define duration by the time interval between two unit reveals, or by the total duration the reveal should take

Enumerator
Interval 
TotalDuration 

◆ RevealModes

the possible ways to reveal the text

Enumerator
Character 
Lines 
Words 

Member Function Documentation

◆ CustomPlayFeedback()

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

◆ CustomStopFeedback()

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

Stops the animation if needed

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ RevealCharacters()

virtual IEnumerator MoreMountains.Feedbacks.MMF_TMPTextReveal.RevealCharacters ( )
protectedvirtual

Reveals characters one at a time

Returns

◆ RevealLines()

virtual IEnumerator MoreMountains.Feedbacks.MMF_TMPTextReveal.RevealLines ( )
protectedvirtual

Reveals lines one at a time

Returns

◆ RevealWords()

virtual IEnumerator MoreMountains.Feedbacks.MMF_TMPTextReveal.RevealWords ( )
protectedvirtual

Reveals words one at a time

Returns

◆ RichTextLength()

int MoreMountains.Feedbacks.MMF_TMPTextReveal.RichTextLength ( string  richText)
protected

Returns the length of a rich text, excluding its tags

Parameters
richText
Returns

Member Data Documentation

◆ _coroutine

Coroutine MoreMountains.Feedbacks.MMF_TMPTextReveal._coroutine
protected

◆ _delay

float MoreMountains.Feedbacks.MMF_TMPTextReveal._delay
protected

◆ _richTextLength

int MoreMountains.Feedbacks.MMF_TMPTextReveal._richTextLength
protected

◆ DurationMode

DurationModes MoreMountains.Feedbacks.MMF_TMPTextReveal.DurationMode = DurationModes.Interval

whether to define duration by the time interval between two unit reveals, or by the total duration the reveal should take

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_TMPTextReveal.FeedbackTypeAuthorized = true
static

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

◆ IntervalBetweenReveals

float MoreMountains.Feedbacks.MMF_TMPTextReveal.IntervalBetweenReveals = 0.05f

the interval (in seconds) between two reveals

◆ NewText

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

the new text to replace the old one with

◆ ReplaceText

bool MoreMountains.Feedbacks.MMF_TMPTextReveal.ReplaceText = false

whether or not to replace the current TMP target's text on play

◆ RevealDuration

float MoreMountains.Feedbacks.MMF_TMPTextReveal.RevealDuration = 1f

the total duration of the text reveal, in seconds

◆ RevealMode

RevealModes MoreMountains.Feedbacks.MMF_TMPTextReveal.RevealMode = RevealModes.Character

the selected way to reveal the text (character by character, word by word, or line by line)

◆ TargetTMPText

TMP_Text MoreMountains.Feedbacks.MMF_TMPTextReveal.TargetTMPText

the target TMP_Text component we want to change the text on

Property Documentation

◆ FeedbackDuration

override float MoreMountains.Feedbacks.MMF_TMPTextReveal.FeedbackDuration
getset

the duration of this feedback


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