TextStudioPreparedFieldTier
public sealed class TextStudioPreparedFieldTierDensity and the full signed-distance decode interval are independent, explicit quantities.
Methods
Section titled “Methods”
GetPage(int)
Section titled “GetPage(int)”public Texture2D GetPage(int index)Returns the field atlas texture at the supplied page index.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
Returns
UnityEngine.Texture2D
GetGlyph(int)
Section titled “GetGlyph(int)”public TextStudioPreparedGlyphField GetGlyph(int index)Returns the prepared glyph placement at the supplied index in the glyph-ID-sorted array.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
Returns
TextStudio.TextStudioPreparedGlyphField
TryGetGlyph(uint, out TextStudioPreparedGlyphField)
Section titled “TryGetGlyph(uint, out TextStudioPreparedGlyphField)”public bool TryGetGlyph(uint glyphIndex, out TextStudioPreparedGlyphField field)Attempts to find a prepared field placement by shaped glyph identifier using the sorted glyph table.
Parameters
| Name | Type |
|---|---|
glyphIndex |
System.UInt32 |
field |
TextStudio.TextStudioPreparedGlyphField |
Returns
System.Boolean
Constructors
Section titled “Constructors”
TextStudioPreparedFieldTier(float, float, Texture2D[], TextStudioPreparedGlyphField[])
Section titled “TextStudioPreparedFieldTier(float, float, Texture2D[], TextStudioPreparedGlyphField[])”public TextStudioPreparedFieldTier(float pixelsPerEm, float distanceRangeEm, Texture2D[] pages, TextStudioPreparedGlyphField[] glyphs)Creates a field tier with the supplied density and distance interval, copied page and glyph arrays, and glyphs sorted by identifier.
Parameters
| Name | Type |
|---|---|
pixelsPerEm |
System.Single |
distanceRangeEm |
System.Single |
pages |
UnityEngine.Texture2D[] |
glyphs |
TextStudio.TextStudioPreparedGlyphField[] |
Properties
Section titled “Properties”
PixelsPerEm
Section titled “PixelsPerEm”public float PixelsPerEm { get; }Returns
System.Single
DistanceRangeEm
Section titled “DistanceRangeEm”public float DistanceRangeEm { get; }Returns
System.Single
SafeDistanceEm
Section titled “SafeDistanceEm”public float SafeDistanceEm { get; }Returns
System.Single
PageCount
Section titled “PageCount”public int PageCount { get; }Returns
System.Int32
GlyphCount
Section titled “GlyphCount”public int GlyphCount { get; }Returns
System.Int32
TextureBytes
Section titled “TextureBytes”public long TextureBytes { get; }Returns
System.Int64