Is there a way to draw debugs in screen space? I understand there is a DrawBox node, but I haven’t been able to get it to do anything so far.
Hello @sweeetjd ! How are you?
I assume you are working with blueprints. To create a debug box, you should use the “Draw Debug Box” and be sure that you set a proper location and extent. In addition, you need to set a Line Color, a Duration (the time the debug line will be visible), and a Thickness for the lines.
You can take as “center” the center of you character, for example and set the rotation relative to it as well:
Note that I set the Extent manually, but you can use a variable if you want.
You will end with something like this (I’m using my left click as trigger for the draw):
You can also draw the debug box relative to an actor but with an offset or “in front” of it. To do that you can use the following nodes:
The multiplier is the distance from the center in which the box will be draw.
In game it should be like this:
You can use the same logic with any Draw Debug (Sphere, Box, etc.), they are pretty much the same!
Hope this helps you!
Thanks for the reply. I’m more looking for a box on the screen space and not in 3D space. What I ended up doing was just creating a widget that I can toggle on and off that will draw the boxes for me. Not the most ideal but it gets the job done.