-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
[Question]: Unable to draw lines in 2D #14
Comments
Thanks for your feedback, sorry for my misunderstanding of those boolean settings but i was trying out different settings to see if I could view the lines. I see the question about the help is not relevant to the Godot 3.5 version.
Sorry could you rephrase what you mean here? Are you saying it should already work for 2d? Or that there may be some other addon for 2d that I should use instead? In order to use yours with 2d, I would need to add a 3d camera to the scene? I don't always run via the godot editor so i wouldn't necessarily be able to use the editor button you show, but maybe I could instantiate a 3d camera via code. not sure how messy that will get for a 2d game though |
I meant that maybe there is another extension for debug drawing in 2d.
I'm not sure if there is a easy way to render 3d over 2d. Usually 2d is drawn on top of 3d. |
Ah okay. I haven't found a 2D-enabled one in my searches so far. There is the proposal open to make easier debug drawing an engine feature which seems unlikely to be implemented, which is how I found this addon. I found this, which has 2D support but is for Godot 4 https://github.com/jirikostiha/godot-sharp-some Maybe I should pursue doing it this way for now:
|
Looks like Line2D could be used for some basic drawing, and you could surround that related code with #if. Thanks for your help finding the problems with my usage of your plugin though, appreciate it |
Godot version
v3.5.2.stable.mono.official [170ba337a]
DebugDraw3D version
1.0.2
On which operating systems the error occurs
Windows
Using which renderers the error occurs
GLES3
Issue description
Hello, I'm quite interested to try this plugin for my project as it seems really cool.
In earlier messages you asked to confirm the plugin is installed by searching the help for DebugDraw I believe. In my project and my test repro for this issue, I can't see that in the help.
I'm also kind of unclear about how to use this for 2D, is it possible? The arguments are Vector3, but not sure if these will display in a 2D view. I would ideally like to draw lines with with global position /world space position of 2D nodes and have them display over everything.
Steps to reproduce
Open this zip project and run the main scene
The text is showing but the lines are not drawing
Minimal reproduction project
DebugDrawTest.zip
The text was updated successfully, but these errors were encountered: