Table of Contents

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

index int
cInfo TMP_CharacterInfo
wordIndex int
wInfo TMP_WordInfo

Fields

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

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

int

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

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 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 inde

public readonly int wordNumber

Field Value

int

xAdvance

The xAdvance factor of the character.

public readonly float xAdvance

Field Value

float