Table of Contents

DOText Method

Namespace
DG.Tweening

DOText(Text, string, float, bool, ScrambleMode, string)

public static TweenerCore<string, string, StringOptions> DOText(this UnityEngine.UI.Text target, string endValue, float duration, bool richTextEnabled = true, ScrambleMode scrambleMode = null, string scrambleChars = null)

Tweens a Text's text to the given value. Also stores the Text as the tween's target so it can be used for filtered operations

Parameters

target Text
endValue string

The end string to tween to

duration float

The duration of the tween

richTextEnabled bool

If TRUE (default), rich text will be interpreted correctly while animated, otherwise all tags will be considered as normal text

scrambleMode ScrambleMode

The type of scramble mode to use, if any

scrambleChars string

A string containing the characters to use for scrambling. Use as many characters as possible (minimum 10) because DOTween uses a fast scramble mode which gives better results with more characters. Leave it to NULL (default) to use default ones

Returns

TweenerCore<string, string, StringOptions>