For my Unity puzzle game, I am looking to draw elliptical "shadows" under certain letters in a Text Mesh Pro text field.
These shadows will have varying widths depending on the width of the letters, and the number of letters covered by the shadow. The following picture shows three possible examples of one-letter, two-letter and three-letter shadows.
I have calculated the width of each letter, and between that and the kerning... I know what the semi-major axis of the ellipse should be. (The height/semi-minor axis will always be the same.)
I understand that it's possible to draw an ellipse using a Line Renderer. Is there a similarly simple way to draw a filled ellipse? There would ideally be 4 inputs:
- Width (semi-major axis)
- Height (semi-minor axis)
- Color of the fill
- Color of the border
(If the color of the fill and the color of the border has to be the same, that is totally acceptable.)
Any suggestions on how to draw such a filled ellipse in Unity? Thank you!