# \#debug-draw

**URL:** https://forums.unrealengine.com/tag/debug-draw/3415.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [Draw debug line - infinity duration?](https://forums.unrealengine.com/t/draw-debug-line-infinity-duration/293109)

<div class="topic-metadata">

**Author:** [@hamsterPL](https://forums.unrealengine.com/u/hamsterPL)\
**Replies:** 15\
**Last updated:** [January 10, 2025, 7:32am UTC](https://forums.unrealengine.com/t/draw-debug-line-infinity-duration/293109 "2025-01-10T07:32:07Z")

</div>

Hi Is there a way to draw a debug line between 2 objects with endless duration? I can draw a line, but for certain amount of time, thing is I need to see these helpers all the time in editor. I tested it on 4.4. Than…

---

## [Gizmos, OnDrawGizmos(), OnDrawGizmosSelected() in Unreal](https://forums.unrealengine.com/t/gizmos-ondrawgizmos-ondrawgizmosselected-in-unreal/329118)

<div class="topic-metadata">

**Author:** [@Deni35\_1](https://forums.unrealengine.com/u/Deni35_1)\
**Replies:** 3\
**Last updated:** [November 5, 2024, 3:44pm UTC](https://forums.unrealengine.com/t/gizmos-ondrawgizmos-ondrawgizmosselected-in-unreal/329118 "2024-11-05T15:44:25Z")

</div>

Is there way to draw a debug info and geometry in editor and play mode? Now I use DrawDebugHelpers in Tick method. But it works only in play mode. And will work in build.

---

## [Debug Line Not Destroing](https://forums.unrealengine.com/t/debug-line-not-destroing/1776446)

<div class="topic-metadata">

**Author:** [@Readhunterbd1](https://forums.unrealengine.com/u/Readhunterbd1)\
**Replies:** 0\
**Last updated:** [March 28, 2024, 6:40pm UTC](https://forums.unrealengine.com/t/debug-line-not-destroing/1776446 "2024-03-28T18:40:30Z")

</div>

Draw Debug point On Construction Script Dosen’t Destroy It Self After Given time,On BluePrint but in C++ if i use before the duration opting then after -1.0f its destroy but if i use time then it dont work,Is It Common

---

## [How to use FDebugRenderSceneProxy](https://forums.unrealengine.com/t/how-to-use-fdebugrendersceneproxy/413562)

<div class="topic-metadata">

**Author:** [@Takatu](https://forums.unrealengine.com/u/Takatu)\
**Replies:** 3\
**Last updated:** [October 21, 2023, 1:29am UTC](https://forums.unrealengine.com/t/how-to-use-fdebugrendersceneproxy/413562 "2023-10-21T01:29:46Z")

</div>

Hi, I have a component UMyComponent (derived from UPrimitiveComponent) and want to draw some debug info. For that I have overwritten the CreateSceneProxy function and create a FDebugRenderSceneProxy. See code below. Bu…

---

## [Can't show draw debug primitive for AnimNode](https://forums.unrealengine.com/t/cant-show-draw-debug-primitive-for-animnode/459909)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_2f169c1d1](https://forums.unrealengine.com/u/anonymous_user_2f169c1d1)\
**Replies:** 1\
**Last updated:** [February 20, 2023, 8:28am UTC](https://forums.unrealengine.com/t/cant-show-draw-debug-primitive-for-animnode/459909 "2023-02-20T08:28:23Z")

</div>

In my project I use ConsoleVariable in My CustomAnimNode for trigger AnimDrawDebugSphere/Line. It used to be fine.But today I open my project again and the AnimDrawDebugSphere won’t work anymore. I try the build-in Leg…

---

## [\[FREE\] ShapesVisualizer: component for visualizing different shapes](https://forums.unrealengine.com/t/free-shapesvisualizer-component-for-visualizing-different-shapes/655806)

<div class="topic-metadata">

**Author:** [@rionix](https://forums.unrealengine.com/u/rionix)\
**Replies:** 0\
**Last updated:** [September 25, 2022, 8:13am UTC](https://forums.unrealengine.com/t/free-shapesvisualizer-component-for-visualizing-different-shapes/655806 "2022-09-25T08:13:44Z")

</div>

This component can draw different shapes: spheres, half spheres, boxes, cylinders, cones, capsules, points and polyline in wireframe and solid mode. It is very convenient for displaying debugging information: target sear…

---

## [How to make visualization by FComponentVisualizer always visible?](https://forums.unrealengine.com/t/how-to-make-visualization-by-fcomponentvisualizer-always-visible/488124)

<div class="topic-metadata">

**Author:** [@AndreM411](https://forums.unrealengine.com/u/AndreM411)\
**Replies:** 1\
**Last updated:** [September 14, 2022, 7:59pm UTC](https://forums.unrealengine.com/t/how-to-make-visualization-by-fcomponentvisualizer-always-visible/488124 "2022-09-14T19:59:12Z")

</div>

I am trying to create a special visualization in the editor for a USceneComponent class. For this I found the FComponentVisualizer class, which basically works when the corresponding Actor is selected. However, I want t…

---

## [Cone Check/Cone Trace](https://forums.unrealengine.com/t/cone-check-cone-trace/297938)

<div class="topic-metadata">

**Author:** [@Sentura](https://forums.unrealengine.com/u/Sentura)\
**Replies:** 25\
**Last updated:** [October 8, 2021, 8:36am UTC](https://forums.unrealengine.com/t/cone-check-cone-trace/297938 "2021-10-08T08:36:59Z")

</div>

EDIT: As I found a solution to my first question, I’m changing the question to just focus on my other question. I’m looking for a way to reliably do traces in a cone from an object. In my project I’m using a Behavior Tr…

---

## ["Show 3D Widget" variable name rendered in the wrong](https://forums.unrealengine.com/t/show-3d-widget-variable-name-rendered-in-the-wrong/480152)

<div class="topic-metadata">

**Author:** [@EvenZHAnglll](https://forums.unrealengine.com/u/EvenZHAnglll)\
**Replies:** 1\
**Last updated:** [March 12, 2021, 7:01am UTC](https://forums.unrealengine.com/t/show-3d-widget-variable-name-rendered-in-the-wrong/480152 "2021-03-12T07:01:54Z")

</div>

This bug is similar to UE-54346 I have a vector variable named MyLocation in a blueprint actor, toggle on the “show 3d wiget” of the MyLocation. It’s used as a configurable varible for world editing. But the varible na…

---

## [How To Use the DrawDebugCanvas2DXXX function](https://forums.unrealengine.com/t/how-to-use-the-drawdebugcanvas2dxxx-function/460396)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_2f169c1d1](https://forums.unrealengine.com/u/anonymous_user_2f169c1d1)\
**Replies:** 0\
**Last updated:** [January 10, 2020, 12:45pm UTC](https://forums.unrealengine.com/t/how-to-use-the-drawdebugcanvas2dxxx-function/460396 "2020-01-10T12:45:31Z")

</div>

Currently I need to Draw some 2D debug Object, I find Some Functions DrawDebugCanvas2DXXX(...) But It needs UCanvas for Draw,So after some digging I found there’s a UCanvas\* DebugCanvas in AHUD classes, But it’s privat…

---

## [Is there a way to make debug shapes exempt from postprocessing?](https://forums.unrealengine.com/t/is-there-a-way-to-make-debug-shapes-exempt-from-postprocessing/431534)

<div class="topic-metadata">

**Author:** [@neofuturelabs](https://forums.unrealengine.com/u/neofuturelabs)\
**Replies:** 4\
**Last updated:** [August 14, 2018, 4:45am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-make-debug-shapes-exempt-from-postprocessing/431534 "2018-08-14T04:45:24Z")

</div>

Hi, in our game we’re using a post-process material to draw dark outlines around all the objects in the environment via a scene depth comparison with the neighboring pixels. This effect looks good on the environment, but…

---

## [Construction Script Draw Debug Line](https://forums.unrealengine.com/t/construction-script-draw-debug-line/307001)

<div class="topic-metadata">

**Author:** [@DevilsD](https://forums.unrealengine.com/u/DevilsD)\
**Replies:** 7\
**Last updated:** [March 11, 2018, 9:40pm UTC](https://forums.unrealengine.com/t/construction-script-draw-debug-line/307001 "2018-03-11T21:40:19Z")

</div>

I need to be able to draw a debug line between 2 points indefinitely within the construction script so that i can see it within the editor when I’m not in Play Mode. Does anyone have any idea how to do this besides sett…

---

## [Editor crash when clicking on editor viewport](https://forums.unrealengine.com/t/editor-crash-when-clicking-on-editor-viewport/409502)

<div class="topic-metadata">

**Author:** [@Bellian](https://forums.unrealengine.com/u/Bellian)\
**Replies:** 1\
**Last updated:** [November 14, 2017, 10:54am UTC](https://forums.unrealengine.com/t/editor-crash-when-clicking-on-editor-viewport/409502 "2017-11-14T10:54:46Z")

</div>

Hi, I have the following problem: I try to render custom debug information to the editor viewport, to be specific a Texture overlay. To do it i registered a Delegate at the UDebugDrawService: void FTestPluginClient::…

---

## [How can we change DrawDebugString font size?](https://forums.unrealengine.com/t/how-can-we-change-drawdebugstring-font-size/406450)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_bf47512e](https://forums.unrealengine.com/u/anonymous_user_bf47512e)\
**Replies:** 0\
**Last updated:** [October 8, 2017, 12:28am UTC](https://forums.unrealengine.com/t/how-can-we-change-drawdebugstring-font-size/406450 "2017-10-08T00:28:58Z")

</div>

I would like to change the debug string font size. Looks like I’ll write a new function (DrawDebugString2), to pass the parameter font size from AddDebugText to DrawDebugString2. I wonder if this could be done by Epic …

---

## [DrawDebug in screen space?](https://forums.unrealengine.com/t/drawdebug-in-screen-space/344528)

<div class="topic-metadata">

**Author:** [@duke22](https://forums.unrealengine.com/u/duke22)\
**Replies:** 2\
**Last updated:** [February 28, 2017, 10:03am UTC](https://forums.unrealengine.com/t/drawdebug-in-screen-space/344528 "2017-02-28T10:03:56Z")

</div>

I’d like to draw some debug shapes (points, lines, etc.) in screenspace. I see I can do this in 3D/world space - is it possible to do in 2D?

---

## [Debug Sphere is rendering wrong for VR](https://forums.unrealengine.com/t/debug-sphere-is-rendering-wrong-for-vr/370064)

<div class="topic-metadata">

**Author:** [@Slayemin](https://forums.unrealengine.com/u/Slayemin)\
**Replies:** 1\
**Last updated:** [September 12, 2016, 3:30pm UTC](https://forums.unrealengine.com/t/debug-sphere-is-rendering-wrong-for-vr/370064 "2016-09-12T15:30:07Z")

</div>

I’m using an HTC and trying to use the “Draw Debug Sphere” blueprint node to draw debug geometry. When I try to do this and view it within VR Preview, I am getting display errors. If I look through my right eye, I can s…

---

## [Debug lines drawing very faintly](https://forums.unrealengine.com/t/debug-lines-drawing-very-faintly/358347)

<div class="topic-metadata">

**Author:** [@Ryan\_Darcey](https://forums.unrealengine.com/u/Ryan_Darcey)\
**Replies:** 1\
**Last updated:** [May 24, 2016, 12:00am UTC](https://forums.unrealengine.com/t/debug-lines-drawing-very-faintly/358347 "2016-05-24T00:00:51Z")

</div>

This happened some time ago when I updated to a later version of the engine. Either 4.7 or 4.10. The lines render SUPER faintly and are almost completely invisible when I move. Any ideas? Sorry for crappy image. Can…

---

## [Are there any plans to allow control over the alpha values of colors in debug drawing?](https://forums.unrealengine.com/t/are-there-any-plans-to-allow-control-over-the-alpha-values-of-colors-in-debug-drawing/323901)

<div class="topic-metadata">

**Author:** [@janimationd](https://forums.unrealengine.com/u/janimationd)\
**Replies:** 0\
**Last updated:** [July 2, 2015, 10:55pm UTC](https://forums.unrealengine.com/t/are-there-any-plans-to-allow-control-over-the-alpha-values-of-colors-in-debug-drawing/323901 "2015-07-02T22:55:13Z")

</div>

It would be extremely helpful for my current project if I could make debug lines, cylinders, spheres, float history charts, etc. appear fully opaque instead of unchangeably translucent. The LinearColor that controls thei…

---

## [Draw a rectangle the size of the error](https://forums.unrealengine.com/t/draw-a-rectangle-the-size-of-the-error/319775)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_70c175b8](https://forums.unrealengine.com/u/anonymous_user_70c175b8)\
**Replies:** 1\
**Last updated:** [May 26, 2015, 11:38am UTC](https://forums.unrealengine.com/t/draw-a-rectangle-the-size-of-the-error/319775 "2015-05-26T11:38:39Z")

</div>

Click SDHDrawWidget4 vertices, but draw a rectangle the size of the error. How to use the mouse to draw a rectangle? Any help would be appreciated. Thanks

---

## [Meaning of Frame, Game, Draw when using Stat UnitGraph](https://forums.unrealengine.com/t/meaning-of-frame-game-draw-when-using-stat-unitgraph/317239)

<div class="topic-metadata">

**Author:** [@SOFT\_SPOKEN](https://forums.unrealengine.com/u/SOFT_SPOKEN)\
**Replies:** 2\
**Last updated:** [May 4, 2015, 7:39pm UTC](https://forums.unrealengine.com/t/meaning-of-frame-game-draw-when-using-stat-unitgraph/317239 "2015-05-04T19:39:27Z")

</div>

While running a game, opening the console and entering “STAT UnitGraph” produces a nice graph of roughly where the game is spending it’s time, broken down into Frame, Game and Draw components. I’m trying to get up to a …

---

## [Draw physics capsule](https://forums.unrealengine.com/t/draw-physics-capsule/316860)

<div class="topic-metadata">

**Author:** [@PersnicketyGareth](https://forums.unrealengine.com/u/PersnicketyGareth)\
**Replies:** 2\
**Last updated:** [April 29, 2015, 7:53pm UTC](https://forums.unrealengine.com/t/draw-physics-capsule/316860 "2015-04-29T19:53:52Z")

</div>

Is there a way to view the physics/primitive capsule whilst in play mode in the editor? I would like to see where exactly I am colliding with things for debugging purposes.

---

## [How to show the shadow frustum?](https://forums.unrealengine.com/t/how-to-show-the-shadow-frustum/316402)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_80d7367e1](https://forums.unrealengine.com/u/anonymous_user_80d7367e1)\
**Replies:** 2\
**Last updated:** [April 27, 2015, 6:41pm UTC](https://forums.unrealengine.com/t/how-to-show-the-shadow-frustum/316402 "2015-04-27T18:41:55Z")

</div>

In the screenshot within the documentation, the shadow frustom of movable objects is visible (the boxes around the spheres). How can I show the shadow frustum in the editor?

---

## [How to use DrawDebugLine to show a vector..?](https://forums.unrealengine.com/t/how-to-use-drawdebugline-to-show-a-vector/316415)

<div class="topic-metadata">

**Author:** [@DanaFo](https://forums.unrealengine.com/u/DanaFo)\
**Replies:** 1\
**Last updated:** [April 27, 2015, 6:18am UTC](https://forums.unrealengine.com/t/how-to-use-drawdebugline-to-show-a-vector/316415 "2015-04-27T06:18:50Z")

</div>

Hey all, I was playing with drawdebugline in the hopes of getting the current movement vector of my character visible. However I’m a little confused as to the LineStart and LineEnd parameters… I was using rootcomponent …

---

## [DrawDebugLine unlit?](https://forums.unrealengine.com/t/drawdebugline-unlit/313827)

<div class="topic-metadata">

**Author:** [@MorskoyZmey](https://forums.unrealengine.com/u/MorskoyZmey)\
**Replies:** 8\
**Last updated:** [April 20, 2015, 1:45pm UTC](https://forums.unrealengine.com/t/drawdebugline-unlit/313827 "2015-04-20T13:45:40Z")

</div>

Hi, In 4.7.3+ engine version I see that debug lines, which can be drawn through DrawDebug\[Line/Point/Sphere\] now getting light and darkness. Is this bug or feature? And how I can make them unlit like before? Thanks

---

## [Draw Debug Certain Picture](https://forums.unrealengine.com/t/draw-debug-certain-picture/311687)

<div class="topic-metadata">

**Author:** [@Raidfire.Net](https://forums.unrealengine.com/u/Raidfire.Net)\
**Replies:** 2\
**Last updated:** [March 19, 2015, 4:08pm UTC](https://forums.unrealengine.com/t/draw-debug-certain-picture/311687 "2015-03-19T16:08:48Z")

</div>

Hi, is there an opportunity to show/hide a certain picture on the screen by pressing a key - maybe without using HUD? Thanks in advance

---

## [How to render collision meshes in Solid way? Wireframe is not enough](https://forums.unrealengine.com/t/how-to-render-collision-meshes-in-solid-way-wireframe-is-not-enough/303135)

<div class="topic-metadata">

**Author:** [@CryShader](https://forums.unrealengine.com/u/CryShader)\
**Replies:** 0\
**Last updated:** [January 6, 2015, 12:43am UTC](https://forums.unrealengine.com/t/how-to-render-collision-meshes-in-solid-way-wireframe-is-not-enough/303135 "2015-01-06T00:43:49Z")

</div>

Hi there! In cryengine all collision meshes are solid and this was very convenient for the most cases. In specific cases we can even set opacity for more detailed view. But in UE4 collisions are rendered in wireframe mo…

---

## [Are DrawDebugHelper routines supposed to render in stereo mode?](https://forums.unrealengine.com/t/are-drawdebughelper-routines-supposed-to-render-in-stereo-mode/302654)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_5c81321f](https://forums.unrealengine.com/u/anonymous_user_5c81321f)\
**Replies:** 1\
**Last updated:** [December 31, 2014, 5:03am UTC](https://forums.unrealengine.com/t/are-drawdebughelper-routines-supposed-to-render-in-stereo-mode/302654 "2014-12-31T05:03:52Z")

</div>

Using Engine 4.6.1 I am currently drawing a sphere, however, when I switch to stereo on mode to test with the Oculus Rift the debug geometry no longer shows.

---

## [Draw debug line - duration don't refresh after blueprint compile](https://forums.unrealengine.com/t/draw-debug-line-duration-dont-refresh-after-blueprint-compile/293110)

<div class="topic-metadata">

**Author:** [@hamsterPL](https://forums.unrealengine.com/u/hamsterPL)\
**Replies:** 4\
**Last updated:** [December 12, 2014, 10:22pm UTC](https://forums.unrealengine.com/t/draw-debug-line-duration-dont-refresh-after-blueprint-compile/293110 "2014-12-12T22:22:09Z")

</div>

Hi Simply put, when I set accidently duration for “draw debug line” as very high number, I have a mess on the scene, because they stay until I close editor. Reproduction steps: create blueprint, add 2 meshes for exam…

---

## [Construction Script that contains Draw Debug (Anything) breaks packager](https://forums.unrealengine.com/t/construction-script-that-contains-draw-debug-anything-breaks-packager/287685)

<div class="topic-metadata">

**Author:** [@Thomas\_Ingham](https://forums.unrealengine.com/u/Thomas_Ingham)\
**Replies:** 2\
**Last updated:** [October 3, 2014, 2:26pm UTC](https://forums.unrealengine.com/t/construction-script-that-contains-draw-debug-anything-breaks-packager/287685 "2014-10-03T14:26:06Z")

</div>

Any attempt to render debug output into the viewport during object construction (such as attempting to give the level designer a preview of an aperture setting or other parameter not neatly representable using string out…

---

## [Is there a way to Debug draw the PawnSensingComponent radius?](https://forums.unrealengine.com/t/is-there-a-way-to-debug-draw-the-pawnsensingcomponent-radius/283046)

<div class="topic-metadata">

**Author:** [@kurayama](https://forums.unrealengine.com/u/kurayama)\
**Replies:** 1\
**Last updated:** [May 15, 2014, 9:14am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-debug-draw-the-pawnsensingcomponent-radius/283046 "2014-05-15T09:14:54Z")

</div>

Is there any way to debug draw the radius of sight and hearing in a PawnSensingComponent?

[Next page](https://forums.unrealengine.com/tag/debug-draw/3415.md?match_all_tags=true&page=1&tags%5B%5D=debug-draw)
