Draw.Text create object in editor

Avatar
  • updated
  • Fixed

Draw.Text create object in editor.

Shapes.Draw.Text(
transform.position + 2f * Vector3.up,
(transform.position - Camera.main.transform.position).normalized,
"<sprite index=0>",
TextAlign.Top,
5,
Font,
Color.white);

Image 189

Reporting a bug? please specify Unity version:
2020.1.13f1
Reporting a bug? please specify Shapes version:
2.3.2
Reporting a bug? please specify Render Pipeline:
Avatar
Freya Holmér creator
  • Fixed

this is now (hopefully) fixed in 4.1.2, at least it works on my end for my test cases!

Avatar
George

Sorry, my English is awful.  I use Shapes.Draw.Text(position, norm,"<sprite index=0>"). after I press play and stop this smile continue staying in the editor until I restart unity.

Avatar
Freya Holmér creator
  • Under Review

could you clarify what you mean? As in, what you expect, what happens, and how you're drawing this!