Struct TMP_CharacterInfo
Structure containing information about individual text elements (character or sprites).
Namespace: TMPro
Assembly: Unity.TextMeshPro.dll
Syntax
public struct TMP_CharacterInfo
Fields
alternativeGlyph
Declaration
public Glyph alternativeGlyph
Field Value
ascender
Declaration
Field Value
aspectRatio
Declaration
Field Value
baseLine
Declaration
Field Value
bottomLeft
Declaration
public Vector3 bottomLeft
Field Value
bottomRight
Declaration
public Vector3 bottomRight
Field Value
character
Declaration
Field Value
color
Declaration
Field Value
descender
Declaration
Field Value
elementType
Declaration
public TMP_TextElementType elementType
Field Value
fontAsset
Declaration
public FontAsset fontAsset
Field Value
Type |
Description |
FontAsset |
|
highlightColor
Declaration
public Color32 highlightColor
Field Value
highlightState
Declaration
public HighlightState highlightState
Field Value
index
Declaration
Field Value
isUsingAlternateTypeface
Declaration
public bool isUsingAlternateTypeface
Field Value
isVisible
Declaration
Field Value
lineNumber
Declaration
Field Value
material
Declaration
Field Value
materialReferenceIndex
Declaration
public int materialReferenceIndex
Field Value
origin
Declaration
Field Value
pageNumber
Declaration
Field Value
pointSize
Declaration
Field Value
scale
Declaration
Field Value
strikethroughColor
Declaration
public Color32 strikethroughColor
Field Value
strikethroughVertexIndex
Declaration
public int strikethroughVertexIndex
Field Value
stringLength
Declaration
Field Value
style
Declaration
Field Value
textElement
Declaration
public TextElement textElement
Field Value
Type |
Description |
TextElement |
|
topLeft
Declaration
Field Value
topRight
Declaration
Field Value
underlineColor
Declaration
public Color32 underlineColor
Field Value
underlineVertexIndex
Declaration
public int underlineVertexIndex
Field Value
vertexIndex
Declaration
Field Value
vertex_BL
Declaration
public TMP_Vertex vertex_BL
Field Value
vertex_BR
Declaration
public TMP_Vertex vertex_BR
Field Value
vertex_TL
Declaration
public TMP_Vertex vertex_TL
Field Value
vertex_TR
Declaration
public TMP_Vertex vertex_TR
Field Value
xAdvance
Declaration
Field Value
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.