Back to API Reference
Class
LineRenderHelper
static
public static void DrawLine(UniTextMeshGenerator gen, UniTextFontProvider fontProvider, float startX, float endX, float baselineY, float lineYOffset, int cluster, long varHash48, float uvLeft, float uvRight, float thickness)Emits one decoration-line quad spanning [startX, endX] at baselineY + lineYOffset, sampling the underscore SDF column described by [uvLeft, uvRight] (use centerX..centerX for stretch segments and -sdfPadding..centerX / centerX..aspect+sdfPadding for end caps).
public static void DrawDot(UniTextMeshGenerator gen, UniTextFontProvider fontProvider, float centerX, float baselineY, float lineYOffset, int cluster, float dotSize)Emits one dot quad centered at (centerX, baselineY + lineYOffset), sized dotSize * aspect × dotSize where aspect is the bullet glyph's natural width/height ratio (typically ≈1). Samples the bullet glyph (U+2022) so the SDF gives a true round shape with antialiased edge. Falls back to a square dotSize×dotSize stretched-underscore mark when the resolved font has no bullet glyph or the atlas entry is missing.
