TextInfo
Info
typeClass
namespaceAnimatext
Properties
Public
charCountintThe charater count of the effect text.
charInfoCharInfo[]The charater infomation.
colorsDirtyboolWhether the cache colors are different from the current colors at execution time.
dataDirtyboolWhether the cache data are different from the current data at execution time.
effectTextstringThe text containing the effect.
originTextstringThe origin text of the text component.
outputTextstringThe parsed text of the text component.
parsedTextstringThe parsed text of the Animatext component.
positionsDirtyboolWhether the cache positions are different from the current positions at execution time.
Static Public
lineBreaksHashSet<char>The line breaks of text parsing.
wordBreaksHashSet<char>The word breaks of text parsing.
Methods
Public
ColorRange(Range range, Color color)Colors the characters in the range of the effect text.
ColorRange(Range range, Color color, ColorMode colorMode)Colors the characters in the range of the effect text.
Execute()Executes the text animations of the text infomation.
GenerateExecutionRanges(ExecutionEffect executionEffect)ExecutionRange[]Generates the execution ranges.
MoveRange(Range range, Vector2 position)Moves the characters in the range of the effect text.
OpacifyRange(Range range, float opacity)Opacifies the characters in the range of the effect text.
OpacifyRange(Range range, float opacity, ColorMode colorMode)Opacifies the characters in the range of the effect text.
RotateRange(Range range, float rotation)Rotates the characters in the range of the effect text.
RotateRange(Range range, float rotation, Vector2 anchorPoint)Rotates the characters around the anchor point in the range of the effect text.
ScaleRange(Range range, Vector2 scale)Scales the characters in the range of the effect text.
ScaleRange(Range range, Vector2 scale, Vector2 anchorPoint)Scales the characters around the anchor point in the range of the effect text.
SkewRange(Range range, Vector2 skew)Skews the characters in the range of the effect text.
SkewRange(Range range, Vector2 skew, Vector2 anchorPoint)Skews the characters around the anchor point in the range of the effect text.
-
Update(string text, List<Effect> effects, Settings settings, Func<string, StringInfo> func)Updates the text infomation.
textThe origin text.
effectsThe effect list.
settingsThe setting of the Animatext component.
funcThe function to get the string infomation of the output text.
UpdateRangeAnchor(Range range, Anchor anchor)Updates the anchor of the characters in the range of the effect text.
Static Public
-
ParseText(string text, Dictionary<string, int> tagDictionary, Settings settings, out List<TagInfo> tagInfoList)StringInfoParses the text.
textThe origin text.
tagDictionaryThe dictionary of the effect tags.
settingsThe setting of the Animatext component.
tagInfoListThe tag info list.
returnThe string infomation of the parsed text.