# \[Bug\] Draw Line function in HUD ignores alpha value

**URL:** <https://forums.unrealengine.com/t/bug-draw-line-function-in-hud-ignores-alpha-value/356119>\
**Category:** UI\
**Tags:** hud, unreal-engine, bug-report, UE4, question\
**Created:** [May 1, 2016, 4:44pm UTC](https://forums.unrealengine.com/t/bug-draw-line-function-in-hud-ignores-alpha-value/356119 "2016-05-01T16:44:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonygiang](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tonygiang](https://forums.unrealengine.com/u/tonygiang)\
**Post date:** [May 1, 2016, 4:44pm UTC](https://forums.unrealengine.com/t/bug-draw-line-function-in-hud-ignores-alpha-value/356119/1 "2016-05-01T16:44:28Z")

</div>

The Draw Line function in HUD class draws every line with 1.0 alpha value, disregarding the actual alpha value of its line color.  
To reproduce the bug, just make any template project, modify its default HUD blueprint to append a Draw Line call, choose any location and pick a line color with an alpha value less than 1.0.  
Tested on UE 4.11, Windows 10 64-bit.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [May 2, 2016, 6:46pm UTC](https://forums.unrealengine.com/t/bug-draw-line-function-in-hud-ignores-alpha-value/356119/2 "2016-05-02T18:46:01Z")

</div>

Hi tonygjang,

I was able to reproduce this on my end and have entered a bug report, UE-30195, to be assessed by the development staff.

---

<div class="post-metadata">

**Author:** ![fruitbat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fruitbat](https://forums.unrealengine.com/u/fruitbat)\
**Post date:** [August 16, 2024, 7:31pm UTC](https://forums.unrealengine.com/t/bug-draw-line-function-in-hud-ignores-alpha-value/356119/3 "2024-08-16T19:31:00Z")

</div>

Resurrecting this from almost 8 years ago. In version 5.4, HUD’s “Draw Line” does not respect the alpha value. Same steps to reproduce as mentioned above. Most obvious with highly saturated color and a decent line thickness.

---

<div class="post-metadata">

**Author:** ![Blick-Gin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Blick-Gin](https://forums.unrealengine.com/u/Blick-Gin)\
**Post date:** [March 7, 2025, 3:16pm UTC](https://forums.unrealengine.com/t/bug-draw-line-function-in-hud-ignores-alpha-value/356119/4 "2025-03-07T15:16:30Z")

</div>

Doing some more necromancy because I struggle with this problem and found this website explaining why the DrawLine function does not apply transparency : [[Coding] Transparent Engine Rendering Lines](https://www.unknowncheats.me/forum/unreal-engine-4-a/524294-transparent-engine-rendering-lines.html)

I am still looking for a solution or a workaround
