# Draw Line but under the widget (line z order?)

**URL:** <https://forums.unrealengine.com/t/draw-line-but-under-the-widget-line-z-order/696717>\
**Category:** UI\
**Tags:** Widget, UE4, Blueprint, question, UMG\
**Created:** [November 22, 2022, 12:48pm UTC](https://forums.unrealengine.com/t/draw-line-but-under-the-widget-line-z-order/696717 "2022-11-22T12:48:13Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![lordlolek](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lordlolek/32/906205_2.png) [@lordlolek](https://forums.unrealengine.com/u/lordlolek)\
**Post date:** [April 29, 2023, 4:52pm UTC](https://forums.unrealengine.com/t/draw-line-but-under-the-widget-line-z-order/696717/8 "2023-04-29T16:52:58Z")

</div>

Yeah, the solution is simple but kind of silly. Create a different Widget Blueprint with one job, which is drawing lines. Then add this blueprint to your main blueprint, and you can change its order and make it covered by other widgets.

However, if you want different lines with different Z-orders, you’ll need to create multiple widgets with lines.

If I were to do it now, I would create a generic widget blueprint called something like ‘WBP\_LineDrawer’, where I could draw a single line or arrays of lines.

But honestly, for now, I try to avoid using draw lines in general because trying to make them draw in the right positions in nested widgets was driving me crazy.

---

_[View the full topic](https://forums.unrealengine.com/t/draw-line-but-under-the-widget-line-z-order/696717)._
