Drawing debugs on the viewport/screenspace

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!