UnitInfo
Info
typeStruct
namespaceAnimatext
Constructors
-
UnitInfo(TextInfo textInfo, Range range)
textInfoThe text infomation.
rangeThe character index range of the unit in effect text.
Properties
Public
anchorAnchorThe anchor of the unit.
rangeRangeThe character index range of the unit in effect text.
textstringThe text of the unit.
Methods
Public
Color(Color color)Colors the unit.
Color(Color color, ColorMode colorMode)Colors the unit.
-
GetAnchorPoint(AnchorType anchorType)Vector2Gets the position of the anchor point.
anchorTypeThe anchor type of the anchor.
Move(Vector2 position)Moves the unit.
Opacify(float opacity)opacifies the unit.
Opacify(float opacity, ColorMode colorMode)opacifies the unit.
Rotate(float rotation)Rotates the unit.
Rotate(float rotation, Vector2 anchorPoint)Rotates the unit around the anchor point.
Scale(Vector2 scale)Scales the unit.
Scale(Vector2 scale, Vector2 anchorPoint)Scales the unit around the anchor point.
Skew(Vector2 skew)Skews the unit.
Skew(Vector2 skew, Vector2 anchorPoint)Skews the unit around the anchor point.
UpdateAnchor()Updates the anchor of the unit.