Struct CharData.Info
- Namespace
- TMPEffects.CharacterData
- Assembly
- TMPEffects.dll
Holds a selection of data of TMPro.TMP_CharacterInfo, as well as some data about the initial mesh of the character.
public struct CharData.Info
- Inherited Members
Constructors
Info(int, TMP_CharacterInfo, int, TMP_WordInfo)
public Info(int index, TMP_CharacterInfo cInfo, int wordIndex, TMP_WordInfo wInfo)
Parameters
Fields
ascender
The ascender of the character.
public readonly float ascender
Field Value
baseLine
The baseline of the character.
public readonly float baseLine
Field Value
character
The actual character.
public readonly char character
Field Value
color
The color of this character.
public readonly Color32 color
Field Value
- Color32
descender
The descender of the character.
public readonly float descender
Field Value
elementType
public readonly TMP_TextElementType elementType
Field Value
- TMP_TextElementType
fontAsset
The font asset used for this character.
public readonly TMP_FontAsset fontAsset
Field Value
- TMP_FontAsset
index
The index of the character within the source text.
public readonly int index
Field Value
isVisible
Whether the character is inherently visible; i.e. is no whitespace.
public readonly bool isVisible
Field Value
lineNumber
The line number of the line this character belongs to.
public readonly int lineNumber
Field Value
origin
public readonly float origin
Field Value
pageNumber
The page number of the page this character belongs to.
public readonly int pageNumber
Field Value
pointSize
The point size.
public readonly float pointSize
Field Value
referenceScale
The reference scale of this character.
public readonly float referenceScale
Field Value
spriteAsset
The sprite asset used for this sprite.
public readonly TMP_SpriteAsset spriteAsset
Field Value
- TMP_SpriteAsset
wordFirstIndex
The first index of the word this character belongs to.
public readonly int wordFirstIndex
Field Value
wordLastIndex
The last index of the word this character belongs to.
public readonly int wordLastIndex
Field Value
wordLen
The length of the word this character belongs to.
public readonly int wordLen
Field Value
wordNumber
The inde
public readonly int wordNumber
Field Value
xAdvance
The xAdvance factor of the character.
public readonly float xAdvance