Skip to content

GlyphLayoutInfo

StructTextStudioTextStudio
public struct GlyphLayoutInfo

Per-glyph layout data produced by the layout engine. Backend-neutral: TMP and UITK adapters translate their layout to this model.

public Vector2 position

Returns

UnityEngine.Vector2

public float advance

Returns

System.Single

public float ascender

Returns

System.Single

public float descender

Returns

System.Single

public float baseline

Returns

System.Single

public int lineIndex

Returns

System.Int32

public int wordIndex

Returns

System.Int32

public bool isVisible

Returns

System.Boolean