Display text using Shapes

Avatar
  • updated
  • Not applicable

Is it possible to display text using the Shapes package?

**Edit
Oh I see now how you've done it on the HUD

It'd be really nice if there was a component or a way to convert TMP text to using shapes.

Also, adding documentation on Shapes.Draw would be super helpful

Reporting a bug? please specify Unity version:
Reporting a bug? please specify Shapes version:
Reporting a bug? please specify Render Pipeline:
Avatar
Freya Holmér creator
  • Not applicable

Component based text is already possible using TMP itself, so I don't really see a reason to make a Shapes version that would in turn just use the TMP stuff anyway!

and, the text draw in Shapes immediate mode, is actually using TMP in and of itself, so, it's all TMP :)

As for documentation, which I presume to be in-line code hints - that's planned! other things have just been prioritized. Unless you meant documentation on the website on immediate mode drawing in general?

Avatar
William Attaway
Quote from Freya Holmér

Component based text is already possible using TMP itself, so I don't really see a reason to make a Shapes version that would in turn just use the TMP stuff anyway!

and, the text draw in Shapes immediate mode, is actually using TMP in and of itself, so, it's all TMP :)

As for documentation, which I presume to be in-line code hints - that's planned! other things have just been prioritized. Unless you meant documentation on the website on immediate mode drawing in general?

Ah ok, so the reason I mention using Shapes to draw is being able to take advantage of the anti-aliasing you use for Shapes. Text in world space when viewed at a distance can look really bad, specifically in VR. Stuff drawn with shapes look great

Inline documentation will be amazing! : )

Avatar
Freya Holmér creator

Text mesh pro already handles anti-aliasing! so there's no need to worry about that