PresentationGlyph
public struct PresentationGlyphA 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.
Fields
Section titled “Fields”
glyphId
Section titled “glyphId”public int glyphIdUnicode codepoint or font-specific glyph ID to render.
Returns
System.Int32
sourceIndex
Section titled “sourceIndex”public int sourceIndexIndex into the canonical (source) text this glyph maps to.
Returns
System.Int32
substitutionState
Section titled “substitutionState”public SubstitutionState substitutionStateCurrent substitution state for animated transitions.
Returns
TextStudio.SubstitutionState
substitutionProgress
Section titled “substitutionProgress”public float substitutionProgressProgress of the substitution (0 = source, 1 = target). Used by decrypt/scramble effects.
Returns
System.Single
tintOverride
Section titled “tintOverride”public Color32 tintOverrideOverride tint applied on top of style color. Default: white (no tint).
Returns
UnityEngine.Color32
alphaMultiplier
Section titled “alphaMultiplier”public float alphaMultiplierAlpha multiplier (0–1). Applied after all other alpha calculations.
Returns
System.Single
public PresentationFlags flagsBit flags for presentation state.
Returns
TextStudio.PresentationFlags
Methods
Section titled “Methods”
HasFlag(PresentationFlags)
Section titled “HasFlag(PresentationFlags)”public bool HasFlag(PresentationFlags flag)Reports whether the glyph carries every requested presentation flag.
Parameters
| Name | Type |
|---|---|
flag |
TextStudio.PresentationFlags |
Returns
System.Boolean
Default(int, int)
Section titled “Default(int, int)”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