Back to API Reference
Struct
TextHitResult
sealed
Result of a range-style text hit test (bounding-box semantics) — identifies the glyph whose rect contains the point. Returned by HitTestRange and its screen-coordinate overload. Use this when asking "which entity is at this position" (links, hashtags, hover-style ranges). For "where should the caret go" queries call HitTestCaret instead — caret semantics need edge-snap (left half of glyph N → cluster N, right half → cluster N+1) which this type does not represent.
public readonly Vector2 glyphPositionPosition of the hit glyph.
public static readonly TextHitResult NoneRepresents no hit.
