Msg.post("@render:", "draw_text") doesn't work

I copied next line from Debugging section:
msg.post("@render:", “draw_text”, { text = “Hello world!”, position = vmath.vector3(200, 200, 0)} );

Then run a script and nothing happened.

At the same time, this line works:
msg.post("@render:", “draw_line”, { start_point = vmath.vector3(200, 200, 0), end_point = vmath.vector3(2100, 300, 0), color = vmath.vector4(1, 1, 1, 1) } );

Should I set something up in order to see debug text on a screen?

1 Like

Hi!
Funny that you asked today, this was just fixed and will work in the upcoming version (1.2.66, I think coming later this week)!

Until then you will have to use the a GUI and a label with (for example) the system_font, sorry for the inconvenience!

1 Like

Hi!

Great! Thank you.

1 Like