Table of Contents

Struct CharData.Info

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

index int
cInfo TMP_CharacterInfo
wordIndex int
wInfo TMP_WordInfo

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

float

baseLine

The baseline of the character.

public readonly float baseLine

Field Value

float

character

The actual character.

public readonly char character

Field Value

char

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

float

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

int

initialMesh

The initial mesh of this character.

public readonly ReadOnlyVertexData initialMesh

Field Value

ReadOnlyVertexData

isVisible

Whether the character is inherently visible; i.e. is no whitespace.

public readonly bool isVisible

Field Value

bool

lineNumber

The line number of the line this character belongs to.

public readonly int lineNumber

Field Value

int

origin

The origin of this character.

public readonly float origin

Field Value

float

pageNumber

The page number of the page this character belongs to.

public readonly int pageNumber

Field Value

int

pointSize

The point size.

public readonly float pointSize

Field Value

float

referenceScale

The reference scale of this character.

public readonly float referenceScale

Field Value

float

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

int

wordLastIndex

The last index of the word this character belongs to.

public readonly int wordLastIndex

Field Value

int

wordLen

The length of the word this character belongs to.

public readonly int wordLen

Field Value

int

wordNumber

The index of the word the character belongs to.

public readonly int wordNumber

Field Value

int

xAdvance

The xAdvance factor of the character.

public readonly float xAdvance

Field Value

float