Class TMPEffectComponent
- Namespace
- TMPEffects.Components
Base class for TMPAnimator and TMPWriter.
public abstract class TMPEffectComponent : MonoBehaviour
- Inheritance
-
TMPEffectComponent
- Derived
Properties
CharData
The associated CharData.
public ReadOnlyCollection<CharData> CharData { get; }
Property Value
Mediator
protected TMPMediator Mediator { get; }
Property Value
TextComponent
The associated TMP_Text component.
public TMP_Text TextComponent { get; }
Property Value
- TMP_Text
Methods
FreeMediator()
protected void FreeMediator()
Hide(int, int, bool)
Hide a subset of the text's characters.
public void Hide(int start, int length, bool skipHideProcess = false)
Parameters
start
intFirst character index to hide.
length
intAmount of characters to hide.
skipHideProcess
boolWhether to skip the hide process.
Exceptions
HideAll(bool)
Hide all of the text's character.
public void HideAll(bool skipHideProcess = false)
Parameters
skipHideProcess
bool
Exceptions
OnSubscribeToMediator()
protected void OnSubscribeToMediator()
OnUnsubscribeFromMediator()
protected void OnUnsubscribeFromMediator()
SetText(string)
Set the text of the associated TMP_Text component.
public void SetText(string text)
Parameters
text
stringThe new text.
Show(int, int, bool)
Show a subset of the text's characters.
public void Show(int start, int length, bool skipShowProcess = false)
Parameters
start
intFirst character index to show.
length
intAmount of characters to show.
skipShowProcess
boolWhether to skip the show process.
Exceptions
ShowAll(bool)
Show all of the text's character.
public void ShowAll(bool skipShowProcess = false)
Parameters
skipShowProcess
boolWhether to skip the show process.
Exceptions
UpdateMediator()
protected void UpdateMediator()
Events
OnTextChanged
Raised when the associated TMP_Text component's text changes.
The bool parameter indicates whether the actual text content changed.
public event TMPEffectComponent.OnTextChangedEventHandler OnTextChanged