BaseAnimatext
Info
typeClass
namespaceAnimatext
inheritanceUnityEngine.MonoBehaviour
Properties
Public
effectsList<Effect>The effect list.
effectTextstringThe text containing the effect.
inputTextstringThe text initially entered in the text component.
isLockedboolWhether the Animatext component is locked. New text will not be parsed if the Animatext component is locked.
outputTextstringThe parsed text of the text component.
parsedTextstringThe parsed text of the Animatext component.
retainedTextstringThe retained text of the text component at runtime.
settingsSettingsThe settings of the Animatext component.
textstringThe text of the text component.
Static Public
versionstringThe version of Animatext.
Methods
Protected
Awake()UnityEngine.MonoBehaviour.Awake
CheckTextDirty()boolCheck whether the text in the text component has been modified.
Execute()Executes the text animations.
ExtraExecute()Additionally executes the text animations. This method is called when the text animations will be executed again in the same frame.
-
GetCharColors(int outputIndex)Color[]Gets the color array of the character vertices.
outputIndexThe character index of the output text.
-
GetCharPositions(int outputIndex)Vector3[]Gets the position array of the character vertices.
outputIndexThe character index of the output text.
-
GetOriginText(string inputText)stringGets the origin text of the text component.
inputTextThe text initially entered in the text component.
-
GetOutputTextInfo(string parsedText)StringInfoGets the parsed string information of the output text.
parsedTextThe parsed text of the Animatext component.
LateUpdate()UnityEngine.MonoBehaviour.LateUpdate
OnDestroy()UnityEngine.MonoBehaviour.OnDestroy
OnDisable()UnityEngine.MonoBehaviour.OnDisable
OnEnable()UnityEngine.MonoBehaviour.OnEnable
OnTextModify()Called when the text of the Animatext component is modified.
-
SetCharColors(int outputIndex, Color[] colors, Color[] originColors)Sets color array of the character vertices.
outputIndexThe index of the output text.
colorsThe current color array of the character vertices.
originColorsThe origin color array of the character vertices.
-
SetCharPositions(int outputIndex, Vector3[] positions, Vector3[] originPositions)Sets position array of the character vertices.
outputIndexThe index of the output text.
positionsThe current position array of the character vertices.
originPositionsThe origin position array of the character vertices.
SetComponentDirty()Marks the text component as dirty.
Start()UnityEngine.MonoBehaviour.Start
Update()UnityEngine.MonoBehaviour.Update
UpdateComponentData();Updates the text vertex data in the text component.
UpdateData()Updates the text vertex data in the text information.
UpdateInfo()Updates the text infomation in the Animatext component.
UpdateText()Updates all the texts in the Animatext component.
Public
EndEffect(int index)Ends the effect.
EndEffects()Ends all the effects.
LockText(string text)Locks the text of the Animatext component. The Animatext component is locked after using this method.
PauseEffect(int index)Pauses the effect.
PauseEffects()Pauses all the effects.
PlayEffect(int index)Plays the effect.
PlayEffects()Plays all the effects.
-
Refresh(bool refreshEffects)Refreshes the Animatext component. The Animatext component is unlocked after using this method.
refreshEffectsWhether to refresh the effects.
RefreshEffect(int index)Refreshes the effect.
RefreshEffects()Refreshes all the effects.
SetEffectAutoPlay(int index, bool autoPlay)Sets the effect to play automatically.
SetEffectsAutoPlay(bool autoPlay)Sets all the effects to play automatically.
SetEffectAutoStart(int index, bool autoStart)Sets the effect to start automatically.
SetEffectsAutoStart(bool autoStart)Sets all the effects to start automatically.
SetEffectRefreshMode(int index, RefreshMode refreshMode)Sets the refresh mode of the effect.
SetEffectsRefreshMode(RefreshMode refreshMode)Sets the refresh mode of all the effects.
SetEffectSpeed(int index, float speed)Sets the speed of the effect.
SetEffectsSpeed(float speed)Sets the speed of all the effects.
SetEffectTime(int index, float time)Sets the time of the effect.
SetEffectsTime(float time)Sets the time of all the effects.
SetText(string text)Sets the text of the Animatext component. The Animatext component is unlocked after using this method.
StartEffect(int index)Starts the effect.
StartEffects()Starts all the effects.
StopEffect(int index)Stops the effect.
StopEffects()Stops all the effects.