TextStudioPresentationGlyphWriter
public readonly struct TextStudioPresentationGlyphWriterControlled writer for presentation-glyph substitutions.
Methods
Section titled “Methods”
Get(int)
Section titled “Get(int)”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
Set(int, in PresentationGlyph)
Section titled “Set(int, in 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 |
SetGlyphId(int, int)
Section titled “SetGlyphId(int, int)”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 |
SetTint(int, in Color32)
Section titled “SetTint(int, in Color32)”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 |
SetAlpha(int, float)
Section titled “SetAlpha(int, float)”public void SetAlpha(int glyphIndex, float alphaMultiplier)Sets the alpha multiplier for one presentation glyph.
Parameters
| Name | Type |
|---|---|
glyphIndex |
System.Int32 |
alphaMultiplier |
System.Single |
SetVisible(int, bool)
Section titled “SetVisible(int, bool)”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 |
Properties
Section titled “Properties”
IsCreated
Section titled “IsCreated”public bool IsCreated { get; }Returns
System.Boolean
public int Count { get; }Returns
System.Int32
this[int]
Section titled “this[int]”public PresentationGlyph this[int glyphIndex] { get; set; }Parameters
| Name | Type |
|---|---|
glyphIndex |
System.Int32 |
Returns
TextStudio.PresentationGlyph