TextStudioGlyphColorBounds
public readonly struct TextStudioGlyphColorBoundsRenderer-neutral local coordinates used to sample a glyph’s source corner colors. TMP-backed bounds are relative to the character origin and baseline so decoration-only geometry samples the same vertical gradient as visible glyph geometry.
Constructors
Section titled “Constructors”
TextStudioGlyphColorBounds(Vector2, Vector2)
Section titled “TextStudioGlyphColorBounds(Vector2, Vector2)”public TextStudioGlyphColorBounds(Vector2 minimum, Vector2 maximum)Creates normalized source-color sampling bounds.
Parameters
| Name | Type |
|---|---|
minimum |
UnityEngine.Vector2 |
maximum |
UnityEngine.Vector2 |
Methods
Section titled “Methods”
WithHorizontalRange(float, float)
Section titled “WithHorizontalRange(float, float)”public TextStudioGlyphColorBounds WithHorizontalRange(float first, float second)Returns bounds with a nonzero sorted horizontal sampling range.
Parameters
| Name | Type |
|---|---|
first |
System.Single |
second |
System.Single |
Returns
TextStudio.TextStudioGlyphColorBounds
Properties
Section titled “Properties”
Minimum
Section titled “Minimum”public Vector2 Minimum { get; }Returns
UnityEngine.Vector2
Maximum
Section titled “Maximum”public Vector2 Maximum { get; }Returns
UnityEngine.Vector2
IsValid
Section titled “IsValid”public bool IsValid { get; }Returns
System.Boolean