Struct CharData.Info
- Namespace
- TMPEffects.CharacterData
Holds a selection of data of TMP_CharacterInfo, as well as 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
InitialPosition
The initial position of this character.
public readonly Vector3 InitialPosition
Field Value
- Vector3
InitialRotation
The initial rotation of this character.
public readonly Quaternion InitialRotation
Field Value
- Quaternion
InitialScale
The initial scale of this character.
public readonly Vector3 InitialScale
Field Value
- Vector3
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
The type of element this character is (sprite or character).
public readonly TMP_TextElementType elementType
Field Value
- TMP_TextElementType
fontAsset
The font asset used for this character (if it is not a sprite).
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
initialMesh
The initial mesh of this character.
public readonly ReadOnlyVertexData initialMesh
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
The origin of this character.
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 character (if it is a 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 index of the word the character belongs to.
public readonly int wordNumber
Field Value
xAdvance
The xAdvance factor of the character.
public readonly float xAdvance