How to add name over a Line

Avatar
  • updated

Hi, i drew 3 lines in order to represent x,y and z axis and i would like to add  a visual name on each line, is there a simple way to do it with shapes ?

Thanks in advance.

Reporting a bug? please specify Unity version:
Reporting a bug? please specify Shapes version:
Reporting a bug? please specify Render Pipeline:
Built-in render pipeline
Avatar
hugo lammens
Quote from Freya Holmér

TextMeshPro is unity's text drawing solution which works similar to Shapes components

Draw.Text only works in Shapes immediate mode drawing (but is effectively just a wrapper for TextMeshPro)

Ok, i see, thanks for the answer

Avatar
Freya Holmér creator

TextMeshPro is unity's text drawing solution which works similar to Shapes components

Draw.Text only works in Shapes immediate mode drawing (but is effectively just a wrapper for TextMeshPro)

Avatar
hugo lammens
Quote from Freya Holmér

In immediate mode you can use Draw.Text along with the proper alignment options and positioning, and with components you can use TextMeshPro.

But there's no auto-positioning of labels along a line with billboarding or anything no!

Ok, thanks for this, but what is the difference between the draw.Text and the TextMeshPro ?

Avatar
Freya Holmér creator

In immediate mode you can use Draw.Text along with the proper alignment options and positioning, and with components you can use TextMeshPro.

But there's no auto-positioning of labels along a line with billboarding or anything no!