Skip to content

TextStudioPresentationGlyphWriter

StructTextStudioTextStudio
public readonly struct TextStudioPresentationGlyphWriter

Controlled writer for presentation-glyph substitutions.

public PresentationGlyph Get(int glyphIndex)

Gets one mutable presentation-glyph value, throwing for an invalid index.

Parameters

Name Type
glyphIndex System.Int32

Returns

TextStudio.PresentationGlyph

public void Set(int glyphIndex, in PresentationGlyph glyph)

Replaces one presentation glyph, throwing for an invalid index.

Parameters

Name Type
glyphIndex System.Int32
glyph TextStudio.PresentationGlyph
public void SetGlyphId(int glyphIndex, int glyphId)

Changes the renderer-specific glyph identifier for one presentation glyph.

Parameters

Name Type
glyphIndex System.Int32
glyphId System.Int32
public void SetTint(int glyphIndex, in Color32 tint)

Sets the color tint override for one presentation glyph.

Parameters

Name Type
glyphIndex System.Int32
tint UnityEngine.Color32
public void SetAlpha(int glyphIndex, float alphaMultiplier)

Sets the alpha multiplier for one presentation glyph.

Parameters

Name Type
glyphIndex System.Int32
alphaMultiplier System.Single
public void SetVisible(int glyphIndex, bool visible)

Changes the explicit visibility flag for one presentation glyph.

Parameters

Name Type
glyphIndex System.Int32
visible System.Boolean

public bool IsCreated { get; }

Returns

System.Boolean

public int Count { get; }

Returns

System.Int32

public PresentationGlyph this[int glyphIndex] { get; set; }

Parameters

Name Type
glyphIndex System.Int32

Returns

TextStudio.PresentationGlyph