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
startintFirst character index to hide.
lengthintAmount of characters to hide.
skipHideProcessboolWhether to skip the hide process.
Exceptions
HideAll(bool)
Hide all of the text's character.
public void HideAll(bool skipHideProcess = false)
Parameters
skipHideProcessbool
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
textstringThe 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
startintFirst character index to show.
lengthintAmount of characters to show.
skipShowProcessboolWhether to skip the show process.
Exceptions
ShowAll(bool)
Show all of the text's character.
public void ShowAll(bool skipShowProcess = false)
Parameters
skipShowProcessboolWhether 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