How do you draw something thats visible in the editor in game?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JTJonny
:warning: Old Version Published before Godot 3 was released.

How do you draw something thats visable in the editor in game?

examples:
–If I wanted to see a NavigationPolygonInstance drawn in game.
–If I wanted to see the little position2D cursor in game.

i think(noob here) they are not mean to be shown. like position2D description: Generic 2D Position hint for editing. It’s just like a plain Node2D but displays as a cross in the 2D-Editor at all times.

you can change the mouse cursor by other ways(if this is your intention)

tiernich | 2016-03-24 19:14

Yeah I think you’re right.

JTJonny | 2016-03-28 01:38

:bust_in_silhouette: Reply From: chuckeles

Mark a script as a tool so it executes in the editor and then draw whatever you want.

Thank you for your answer, but I think tool is only for visualizing your GDScript in the editor. I wanted to see if I could visualize editor tools in game. There probably isn’t a way unless you go into the source, which is beyond by skills. I don’t really need it, just wondering if I could with GDScript.

I think just using draw() to represent the tools is pretty simple to do anyways, thanks.

JTJonny | 2016-03-28 01:36