3 using System.Collections.Generic;
68 public char character;
73 public TMP_TextElementType elementType;
78 public int spriteIndex;
79 public Material material;
80 public int materialReferenceIndex;
81 public bool isUsingAlternateTypeface;
83 public float pointSize;
86 public int lineNumber;
88 public int pageNumber;
91 public int vertexIndex;
97 public Vector3 topLeft;
98 public Vector3 bottomLeft;
99 public Vector3 topRight;
100 public Vector3 bottomRight;
102 public float ascender;
103 public float baseLine;
104 public float descender;
106 public float xAdvance;
107 public float aspectRatio;
109 public Color32 color;
110 public Color32 underlineColor;
111 public Color32 strikethroughColor;
112 public Color32 highlightColor;
113 public FontStyles style;
114 public bool isVisible;
121 public Vector3 position;
125 public Color32 color;
144 public Color topLeft;
145 public Color topRight;
146 public Color bottomLeft;
147 public Color bottomRight;
151 this.topLeft = color;
152 this.topRight = color;
153 this.bottomLeft = color;
154 this.bottomRight = color;
166 this.topLeft = color0;
167 this.topRight = color1;
168 this.bottomLeft = color2;
169 this.bottomRight = color3;
176 public int firstCharacterIndex;
177 public int lastCharacterIndex;
178 public float ascender;
179 public float baseLine;
180 public float descender;
194 public int linkIdFirstCharacterIndex;
195 public int linkIdLength;
196 public int linkTextfirstCharacterIndex;
197 public int linkTextLength;
199 internal char[] linkID;
202 internal void SetLinkID(
char[] text,
int startIndex,
int length)
204 if (linkID ==
null || linkID.Length < length) linkID =
new char[length];
206 for (
int i = 0; i < length; i++)
207 linkID[i] = text[startIndex + i];
217 string text =
string.Empty;
220 for (
int i = linkTextfirstCharacterIndex; i < linkTextfirstCharacterIndex + linkTextLength; i++)
221 text += textInfo.characterInfo[i].character;
234 if (textComponent ==
null)
237 return new string(linkID, 0, linkIdLength);
253 public int firstCharacterIndex;
254 public int lastCharacterIndex;
255 public int characterCount;
264 string word =
string.Empty;
267 for (
int i = firstCharacterIndex; i < lastCharacterIndex + 1; i++)
269 word += charInfo[i].character;
279 public int spriteIndex;
280 public int characterIndex;
281 public int vertexIndex;
296 public Extents(Vector2 min, Vector2 max)
302 public override string ToString()
304 string s =
"Min (" + min.x.ToString(
"f2") +
", " + min.y.ToString(
"f2") +
") Max (" + max.x.ToString(
"f2") +
", " + max.y.ToString(
"f2") +
")";
323 public override string ToString()
325 string s =
"Min (" + min.x.ToString(
"f2") +
", " + min.y.ToString(
"f2") +
") Max (" + max.x.ToString(
"f2") +
", " + max.y.ToString(
"f2") +
")";
335 public int previous_WordBreak;
336 public int total_CharacterCount;
337 public int visible_CharacterCount;
338 public int visible_SpriteCount;
339 public int visible_LinkCount;
340 public int firstCharacterIndex;
341 public int firstVisibleCharacterIndex;
342 public int lastCharacterIndex;
343 public int lastVisibleCharIndex;
344 public int lineNumber;
346 public float maxCapHeight;
347 public float maxAscender;
348 public float maxDescender;
349 public float maxLineAscender;
350 public float maxLineDescender;
351 public float previousLineAscender;
353 public float xAdvance;
354 public float preferredWidth;
355 public float preferredHeight;
357 public float previousLineScale;
359 public int wordCount;
360 public FontStyles fontStyle;
361 public float fontScale;
362 public float fontScaleMultiplier;
364 public float currentFontSize;
365 public float baselineOffset;
366 public float lineOffset;
372 public Color32 vertexColor;
373 public Color32 underlineColor;
374 public Color32 strikethroughColor;
375 public Color32 highlightColor;
391 public int spriteAnimationID;
395 public Material currentMaterial;
396 public int currentMaterialIndex;
400 public bool tagNoParsing;
401 public bool isNonBreakingSpace;
411 public int startIndex;
419 public int nameHashCode;
420 public TagType valueType;
421 public int valueStartIndex;
422 public int valueLength;
423 public int valueHashCode;
Structure used to store retrieve the name and hashcode of the font and material
int index
Index of the character in the raw string.
Structure which contains information about the individual lines of text.
Class which contains information about every element contained within the text object.
Base class which contains common properties and functions shared between the TextMeshPro and TextMesh...
TMP_VertexDataUpdateFlags
Flags to control what vertex data is pushed to the mesh and renderer.
Structure containing information about the individual words contained in the text object.
Structure containing information about individual links contained in the text object.
string GetLinkText()
Function which returns the text contained in a link.
Base class for all text elements like characters (glyphs) and sprites.
VertexGradient(Color color0, Color color1, Color color2, Color color3)
The vertex colors at the corners of the characters.
TMP custom data type to represent 32 bit characters.
string GetWord()
Returns the word as a string.
string GetLinkID()
Function which returns the link ID as a string.
Structure used to track basic XML tags which are binary (on / off)
TMP_TextInfo textInfo
Returns data about the text object which includes information about each character,...