# \#line

**URL:** https://forums.unrealengine.com/tag/line/2972.md

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

---

## [Draw debug lines with alpha less than 1.0 still appear opaque.](https://forums.unrealengine.com/t/draw-debug-lines-with-alpha-less-than-1-0-still-appear-opaque/282685)

<div class="topic-metadata">

**Author:** [@Heisenburger](https://forums.unrealengine.com/u/Heisenburger)\
**Replies:** 11\
**Last updated:** [January 15, 2026, 10:36pm UTC](https://forums.unrealengine.com/t/draw-debug-lines-with-alpha-less-than-1-0-still-appear-opaque/282685 "2026-01-15T22:36:48Z")

</div>

I’m running into an issue where I can’t debug draw lines with alpha less than 1.0. Does anyone know if this is a 4.1 specific problem or if there is a current work around? Thanks.

---

## [C++ Line Trace Debug Color](https://forums.unrealengine.com/t/c-line-trace-debug-color/443795)

<div class="topic-metadata">

**Author:** [@Geezius](https://forums.unrealengine.com/u/Geezius)\
**Replies:** 6\
**Last updated:** [March 2, 2025, 8:55pm UTC](https://forums.unrealengine.com/t/c-line-trace-debug-color/443795 "2025-03-02T20:55:47Z")

</div>

I have successfully used both Trace Tags and DrawDebugLine to render debug lines, but I have an issue. Is there a function for a C++ debug line that acts like the blueprint version (color features)? Trace Tags seem to o…

---

## [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…

---

## [How to get terrain height at X and Y coordinates in C++?](https://forums.unrealengine.com/t/how-to-get-terrain-height-at-x-and-y-coordinates-in-c/447803)

<div class="topic-metadata">

**Author:** [@Jim\_Clow](https://forums.unrealengine.com/u/Jim_Clow)\
**Replies:** 3\
**Last updated:** [January 4, 2025, 10:47pm UTC](https://forums.unrealengine.com/t/how-to-get-terrain-height-at-x-and-y-coordinates-in-c/447803 "2025-01-04T22:47:57Z")

</div>

Hi , does anyone know how to get the z value for terrain at a particular x and y world coordinate using c++? I could look at the height map itself to calculate heights, but all that would give me is a height of a peaks …

---

## [Correct way to Draw Line (not debug)](https://forums.unrealengine.com/t/correct-way-to-draw-line-not-debug/423486)

<div class="topic-metadata">

**Author:** [@t0msk](https://forums.unrealengine.com/u/t0msk)\
**Replies:** 12\
**Last updated:** [August 12, 2024, 7:13pm UTC](https://forums.unrealengine.com/t/correct-way-to-draw-line-not-debug/423486 "2024-08-12T19:13:35Z")

</div>

Hello, I would like to ask you if my blueprint script is correct for drawing lines (screenshot below), I would like to use it for production, but it says that Draw Line is Debug, what does it mean? That I shouldn’t use …

---

## [ReBound Line](https://forums.unrealengine.com/t/rebound-line/1729034)

<div class="topic-metadata">

**Author:** [@\_177\_8](https://forums.unrealengine.com/u/_177_8)\
**Replies:** 0\
**Last updated:** [March 4, 2024, 5:58am UTC](https://forums.unrealengine.com/t/rebound-line/1729034 "2024-03-04T05:58:30Z")

</div>

Introducing a blueprint tool to everyone-ReBound Line： Customize ray collisions; Customize the number of ray reflections; Custom ray reflection delay time; Customize ray effect templates; Custom ray size YouTube:Moive…

---

## [How to edit PDI line in runtime](https://forums.unrealengine.com/t/how-to-edit-pdi-line-in-runtime/1543142)

<div class="topic-metadata">

**Author:** [@Liv\_Esposito](https://forums.unrealengine.com/u/Liv_Esposito)\
**Replies:** 0\
**Last updated:** [December 21, 2023, 2:18pm UTC](https://forums.unrealengine.com/t/how-to-edit-pdi-line-in-runtime/1543142 "2023-12-21T14:18:32Z")

</div>

I want to edit “PDI-\>DrawLine()” and I used the Component Visualizers its work ，but work in the editor viewport。 so what should i do p.s. English is not my motherlanguage，apologies for my grammar

---

## [Unity's Line Renderer equivalent in UE 4.8+?](https://forums.unrealengine.com/t/unitys-line-renderer-equivalent-in-ue-4-8/343198)

<div class="topic-metadata">

**Author:** [@FRANKIE1I1I1I](https://forums.unrealengine.com/u/FRANKIE1I1I1I)\
**Replies:** 2\
**Last updated:** [December 20, 2023, 10:29am UTC](https://forums.unrealengine.com/t/unitys-line-renderer-equivalent-in-ue-4-8/343198 "2023-12-20T10:29:12Z")

</div>

Hi, Is Beam Particle still the closest thing to Unity’s Line Renderer? I want to be able to create a Line between 2 points (not in the HUD and not a Debug Line) with multiple vertices I can control. What is the best wa…

---

## [Line Trace from screen center to world](https://forums.unrealengine.com/t/line-trace-from-screen-center-to-world/295399)

<div class="topic-metadata">

**Author:** [@MAlexD](https://forums.unrealengine.com/u/MAlexD)\
**Replies:** 13\
**Last updated:** [February 20, 2023, 6:38am UTC](https://forums.unrealengine.com/t/line-trace-from-screen-center-to-world/295399 "2023-02-20T06:38:28Z")

</div>

Hey everybody, I’m currently doing a small amateur FPS game and I’m doing right now firing system and I would like to trace from my crosshair (Which is in the center of my screen) to the world. I tried to use the “Conv…

---

## [How can I Draw lines on UMG by C++ code?](https://forums.unrealengine.com/t/how-can-i-draw-lines-on-umg-by-c-code/407787)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_42835a05](https://forums.unrealengine.com/u/anonymous_user_42835a05)\
**Replies:** 5\
**Last updated:** [October 26, 2022, 11:24pm UTC](https://forums.unrealengine.com/t/how-can-i-draw-lines-on-umg-by-c-code/407787 "2022-10-26T23:24:53Z")

</div>

I want to draw lines on a UMG canvas widget.I know there is a blueprint function called DrawLine can do this,but how to do this by C++ code?

---

## [UE4 Node Lines Colour Meanings](https://forums.unrealengine.com/t/ue4-node-lines-colour-meanings/404255)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c3c24642](https://forums.unrealengine.com/u/anonymous_user_c3c24642)\
**Replies:** 4\
**Last updated:** [April 18, 2021, 2:58pm UTC](https://forums.unrealengine.com/t/ue4-node-lines-colour-meanings/404255 "2021-04-18T14:58:11Z")

</div>

Hi I was wondering what the line’s colors meant. Is there a list of colours somewhere? Thanks

---

## [Help with a line from the player](https://forums.unrealengine.com/t/help-with-a-line-from-the-player/481441)

<div class="topic-metadata">

**Author:** [@llYuell](https://forums.unrealengine.com/u/llYuell)\
**Replies:** 3\
**Last updated:** [April 6, 2021, 11:03pm UTC](https://forums.unrealengine.com/t/help-with-a-line-from-the-player/481441 "2021-04-06T23:03:52Z")

</div>

Hi, the question is that I need to check if the player falls face first against the floor, or backwards, all this to run a recovery animation after the ragdoll effect. However this does not work for me as I expect. T…

---

## [Draw line in distance](https://forums.unrealengine.com/t/draw-line-in-distance/476506)

<div class="topic-metadata">

**Author:** [@Soleniah](https://forums.unrealengine.com/u/Soleniah)\
**Replies:** 3\
**Last updated:** [December 29, 2020, 12:42pm UTC](https://forums.unrealengine.com/t/draw-line-in-distance/476506 "2020-12-29T12:42:15Z")

</div>

Hello guys. I was wondering if there 's a way to draw a line or anything in the place you 've walked. For example, for a maze so you don 't have to walk the same path again.

---

## [空間に線を引くにはどのような方法がありますでしょうか？](https://forums.unrealengine.com/t/topic/475443)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_948c75eb](https://forums.unrealengine.com/u/anonymous_user_948c75eb)\
**Replies:** 3\
**Last updated:** [December 20, 2020, 1:01pm UTC](https://forums.unrealengine.com/t/topic/475443 "2020-12-20T13:01:19Z")

</div>

座標から座標へシンプルに線を引きたいと考えています。 座標が移動するのに伴い、線は伸び縮みして欲しいです。 線は、レーザーのように触れない(すり抜ける)パターンと、ワイヤーのように触ったらコリジョンが検出できるパターンの２つを考えています。 どのような実現方法がありますでしょうか？ 伸縮する細長い円筒形のActorで可能でしょうか？ パーティクルで可能でしょうか？ DrawDebugLineというのがありますが、一定時間で消…

---

## [Landscape line-trace hits underground?](https://forums.unrealengine.com/t/landscape-line-trace-hits-underground/475212)

<div class="topic-metadata">

**Author:** [@3S\_Interactive](https://forums.unrealengine.com/u/3S_Interactive)\
**Replies:** 0\
**Last updated:** [November 30, 2020, 10:58am UTC](https://forums.unrealengine.com/t/landscape-line-trace-hits-underground/475212 "2020-11-30T10:58:21Z")

</div>

I’m trying to ignore line-trace hits to the underside of a landscape so my agents don’t become trapped underground. Is there a way to somehow make the landscape one-sided (positive normals only) so line-traces from belo…

---

## [Line trace showing widget after detected actor](https://forums.unrealengine.com/t/line-trace-showing-widget-after-detected-actor/473132)

<div class="topic-metadata">

**Author:** [@Phonicz](https://forums.unrealengine.com/u/Phonicz)\
**Replies:** 4\
**Last updated:** [October 19, 2020, 4:09pm UTC](https://forums.unrealengine.com/t/line-trace-showing-widget-after-detected-actor/473132 "2020-10-19T16:09:46Z")

</div>

I’ve been trying to get this to work for a month plus now, it only seems to function with a sphere collision not a line trace. I have a widget in the player that is hidden by default, and want to make it show up or show …

---

## [Wireframe/hidden lines shader for architecture](https://forums.unrealengine.com/t/wireframe-hidden-lines-shader-for-architecture/471336)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_93bc38d3](https://forums.unrealengine.com/u/anonymous_user_93bc38d3)\
**Replies:** 0\
**Last updated:** [September 14, 2020, 6:35pm UTC](https://forums.unrealengine.com/t/wireframe-hidden-lines-shader-for-architecture/471336 "2020-09-14T18:35:50Z")

</div>

Hello everyone, I am new to Unreal and I am curating some architecture scenes. I wonder if there is any way to obtain a wireframe material to reproduce the effect in the image attached. Or at least, where I should sta…

---

## [It is possible to draw 2D line in edit mode](https://forums.unrealengine.com/t/it-is-possible-to-draw-2d-line-in-edit-mode/468649)

<div class="topic-metadata">

**Author:** [@dpotuznik](https://forums.unrealengine.com/u/dpotuznik)\
**Replies:** 1\
**Last updated:** [July 25, 2020, 9:09pm UTC](https://forums.unrealengine.com/t/it-is-possible-to-draw-2d-line-in-edit-mode/468649 "2020-07-25T21:09:20Z")

</div>

Hi, for my tool i want to draw rectangle on the viewport on the edit mode i look for hours and nothing it is simply possible ? if yes … how :slight\_smile: ? Thank you for your help. Best Regards Daniel

---

## [Create Grid line](https://forums.unrealengine.com/t/create-grid-line/457455)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_46c9af58](https://forums.unrealengine.com/u/anonymous_user_46c9af58)\
**Replies:** 2\
**Last updated:** [October 24, 2019, 6:48pm UTC](https://forums.unrealengine.com/t/create-grid-line/457455 "2019-10-24T18:48:40Z")

</div>

Please tell me how to create grid line with c++ l desperately need this

---

## [Question about line trace ricochet example](https://forums.unrealengine.com/t/question-about-line-trace-ricochet-example/453502)

<div class="topic-metadata">

**Author:** [@WouterJMW](https://forums.unrealengine.com/u/WouterJMW)\
**Replies:** 0\
**Last updated:** [August 7, 2019, 10:06am UTC](https://forums.unrealengine.com/t/question-about-line-trace-ricochet-example/453502 "2019-08-07T10:06:44Z")

</div>

Hi, I have used the Simple Line Trace Ricochet example to implementing my own (A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums). However, I was confused by why for the ricochet line tra…

---

## [Performance: line tracing vs collision component](https://forums.unrealengine.com/t/performance-line-tracing-vs-collision-component/444743)

<div class="topic-metadata">

**Author:** [@Yahima](https://forums.unrealengine.com/u/Yahima)\
**Replies:** 2\
**Last updated:** [March 7, 2019, 1:15am UTC](https://forums.unrealengine.com/t/performance-line-tracing-vs-collision-component/444743 "2019-03-07T01:15:59Z")

</div>

Assume I have a character who can interact with specific objects in front of it. Is it better to check if there are such objects via line tracing or collision component’s OnOverlapBegin?

---

## [UMG Socket Lines](https://forums.unrealengine.com/t/umg-socket-lines/444039)

<div class="topic-metadata">

**Author:** [@Rypz](https://forums.unrealengine.com/u/Rypz)\
**Replies:** 4\
**Last updated:** [February 26, 2019, 12:43pm UTC](https://forums.unrealengine.com/t/umg-socket-lines/444039 "2019-02-26T12:43:17Z")

</div>

Hello, I am trying to create a slot based attachment system for my weapons and i need to visualise what attachment goes into each slot.I need a way to draw a line from the weapon socket to the desired slot without makin…

---

## [Solid particle path line](https://forums.unrealengine.com/t/solid-particle-path-line/302390)

<div class="topic-metadata">

**Author:** [@Givy](https://forums.unrealengine.com/u/Givy)\
**Replies:** 5\
**Last updated:** [January 17, 2019, 3:16am UTC](https://forums.unrealengine.com/t/solid-particle-path-line/302390 "2019-01-17T03:16:57Z")

</div>

How to get solid path line like in ufo All I managed to achieve with some beam emitters it’s ragged lines I think this can be done just by using one emitter and dynamically changing of interpolation points, but I…

---

## [how can i make line drawing like this picture](https://forums.unrealengine.com/t/how-can-i-make-line-drawing-like-this-picture/440837)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_fafd877e](https://forums.unrealengine.com/u/anonymous_user_fafd877e)\
**Replies:** 1\
**Last updated:** [January 8, 2019, 1:47pm UTC](https://forums.unrealengine.com/t/how-can-i-make-line-drawing-like-this-picture/440837 "2019-01-08T13:47:05Z")

</div>

---

## [How to get from 2 endpoints of a line to xyz location and xyz rotation?](https://forums.unrealengine.com/t/how-to-get-from-2-endpoints-of-a-line-to-xyz-location-and-xyz-rotation/438724)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_33991355](https://forums.unrealengine.com/u/anonymous_user_33991355)\
**Replies:** 0\
**Last updated:** [December 2, 2018, 9:25pm UTC](https://forums.unrealengine.com/t/how-to-get-from-2-endpoints-of-a-line-to-xyz-location-and-xyz-rotation/438724 "2018-12-02T21:25:42Z")

</div>

I have the end points of a line (x1;y1;z1) and (x2;y2;z2). How do I calculate the x-y-z-rotation (of thin cylinders) so Unreal gives me this line, starting at one point and pointing in the right direction (and ending in …

---

## [100 unit long line trace from object to character, how to?](https://forums.unrealengine.com/t/100-unit-long-line-trace-from-object-to-character-how-to/435036)

<div class="topic-metadata">

**Author:** [@kalekarri](https://forums.unrealengine.com/u/kalekarri)\
**Replies:** 4\
**Last updated:** [October 4, 2018, 6:09pm UTC](https://forums.unrealengine.com/t/100-unit-long-line-trace-from-object-to-character-how-to/435036 "2018-10-04T18:09:38Z")

</div>

here is my beautiful drawing about the situation. so im casting a line trace from object to character, at the moment it goes straight to character with "end-\>getactorlocation(self), i want the trace be only 100 units l…

---

## [Black line moves while player moves](https://forums.unrealengine.com/t/black-line-moves-while-player-moves/400002)

<div class="topic-metadata">

**Author:** [@SoraJr](https://forums.unrealengine.com/u/SoraJr)\
**Replies:** 1\
**Last updated:** [August 31, 2018, 7:21pm UTC](https://forums.unrealengine.com/t/black-line-moves-while-player-moves/400002 "2018-08-31T19:21:15Z")

</div>

I have rebulid lighting and redid textures but I keep getting this black line that comes into view and follows the player

---

## [Drawing line after character](https://forums.unrealengine.com/t/drawing-line-after-character/430248)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8081899f](https://forums.unrealengine.com/u/anonymous_user_8081899f)\
**Replies:** 3\
**Last updated:** [July 26, 2018, 1:01pm UTC](https://forums.unrealengine.com/t/drawing-line-after-character/430248 "2018-07-26T13:01:28Z")

</div>

Hi! How can I draw continuous line after character when it moves? Like drawing a trajectory of his movement in the world?

---

## [Sequencer animation line](https://forums.unrealengine.com/t/sequencer-animation-line/426049)

<div class="topic-metadata">

**Author:** [@Rocotos](https://forums.unrealengine.com/u/Rocotos)\
**Replies:** 1\
**Last updated:** [June 14, 2018, 2:23pm UTC](https://forums.unrealengine.com/t/sequencer-animation-line/426049 "2018-06-14T14:23:22Z")

</div>

Hello there! I’ve recently started to learn Sequencer editor and the first important thing that i’m challenging with is animating separate objects. Let me explain a little bit: when I animate custom made model and only …

---

## [What is this line?](https://forums.unrealengine.com/t/what-is-this-line/426112)

<div class="topic-metadata">

**Author:** [@Whitrise](https://forums.unrealengine.com/u/Whitrise)\
**Replies:** 0\
**Last updated:** [May 28, 2018, 10:28am UTC](https://forums.unrealengine.com/t/what-is-this-line/426112 "2018-05-28T10:28:05Z")

</div>

I wanted to use the profile tools. When I turned on the GPU profile tool, examined it, and closed it, I saw this line. I clicked Show in Viewport and ticked the Use Default option. There has not been any change. I…

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