Skip to content

TextStudioGlyphColorBounds

StructTextStudioTextStudio
public readonly struct TextStudioGlyphColorBounds

Renderer-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.

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

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

public Vector2 Minimum { get; }

Returns

UnityEngine.Vector2

public Vector2 Maximum { get; }

Returns

UnityEngine.Vector2

public bool IsValid { get; }

Returns

System.Boolean