10using System.Collections.Generic;
23 private FontStyle _fontStyle;
26 private int _fontSize = 14;
29 private float _lineSpacing = 1;
41 private bool _tokensDirty =
true;
42 private List<TextWrapper.Token> _cachedTokens =
new List<TextWrapper.Token>();
44 public List<TextWrapper.Token>
tokens {
47 _cachedTokens.Clear();
48 TextWrapper.Tokenize(
text, _cachedTokens);
77 if (value != _fontStyle) {
89 if (value != _fontSize) {
101 if (value != _lineSpacing) {
102 _lineSpacing = value;
110 return _horizontalAlignment;
113 if (value != _horizontalAlignment) {
114 _horizontalAlignment = value;
122 return _verticalAlignment;
125 if (value != _verticalAlignment) {
126 _verticalAlignment = value;
137 if (value != _color) {
150 private Rect _prevRect;
152 RectTransform rectTransform = transform as RectTransform;
153 if (rectTransform ==
null) {
157 Rect newRect = rectTransform.rect;
158 if (newRect != _prevRect) {
bool isRepresentationDirty
An internal flag that returns true if the visual representation of this graphic needs to be updated....
List< TextWrapper.Token > tokens
VerticalAlignment verticalAlignment
override void OnValidate()
HorizontalAlignment horizontalAlignment