Skip to content

PresentationGlyph

StructTextStudioTextStudio
public struct PresentationGlyph

A single glyph in the presentation layer. Separates canonical text (what was authored) from visual text (what is displayed). Addons like Terminal FX and Mechanical Displays substitute presentation glyphs while preserving the source text model.

public int glyphId

Unicode codepoint or font-specific glyph ID to render.

Returns

System.Int32

public int sourceIndex

Index into the canonical (source) text this glyph maps to.

Returns

System.Int32

public SubstitutionState substitutionState

Current substitution state for animated transitions.

Returns

TextStudio.SubstitutionState

public float substitutionProgress

Progress of the substitution (0 = source, 1 = target). Used by decrypt/scramble effects.

Returns

System.Single

public Color32 tintOverride

Override tint applied on top of style color. Default: white (no tint).

Returns

UnityEngine.Color32

public float alphaMultiplier

Alpha multiplier (0–1). Applied after all other alpha calculations.

Returns

System.Single

public PresentationFlags flags

Bit flags for presentation state.

Returns

TextStudio.PresentationFlags

public bool HasFlag(PresentationFlags flag)

Reports whether the glyph carries every requested presentation flag.

Parameters

Name Type
flag TextStudio.PresentationFlags

Returns

System.Boolean

public static PresentationGlyph Default(int glyphId, int sourceIndex)

Creates a visible presentation glyph with opaque white tint and unchanged alpha.

Parameters

Name Type
glyphId System.Int32
sourceIndex System.Int32

Returns

TextStudio.PresentationGlyph