Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug line drawing #25436

Closed
HuvaaKoodia opened this issue Jan 28, 2019 · 5 comments
Closed

Debug line drawing #25436

HuvaaKoodia opened this issue Jan 28, 2019 · 5 comments

Comments

@HuvaaKoodia
Copy link

Easily drawing world space debug lines, which are only visible in debug/editor builds, is very useful.

Unity has Debug,DrawLine and Debug,DrawRay for this purpose. Will Godot have something similar?

@aaronfranke
Copy link
Member

aaronfranke commented Jan 28, 2019

Related: #16863 (comment)

It might be useful to create a general-purpose "Gizmo" node for usage in the editor or debugging, which could have subnodes for types of gizmos. Lines could certainly be one of those types.

@eon-s
Copy link
Contributor

eon-s commented Jan 28, 2019

Since the different nodes have many needs for drawing and the engine already offer methods to draw 2D and 3D, this could be done by a custom node, and be on the asset library (utilities for autoload, children like collision shapes).

@wyrmling
Copy link

Sorry, but is it not enough to have primitives draw_* and Line2D?
Or you want to leave them in code and switch off from project settings while building?
Will it have drawback on performance, as GDScript is not a C#?

@kaadmy
Copy link
Contributor

kaadmy commented Feb 25, 2019

This issue doesn't specify 2D or 3D, since 2D already supports immediate line drawing.

@Calinou
Copy link
Member

Calinou commented May 19, 2020

Closing in favor of godotengine/godot-proposals#112, as feature proposals are now tracked on the Godot proposals repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants