# How tidy multiple Line Traces?

**URL:** <https://forums.unrealengine.com/t/how-tidy-multiple-line-traces/242770>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [July 27, 2021, 3:01pm UTC](https://forums.unrealengine.com/t/how-tidy-multiple-line-traces/242770 "2021-07-27T15:01:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![espr3ss0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@espr3ss0](https://forums.unrealengine.com/u/espr3ss0)\
**Post date:** [July 27, 2021, 3:01pm UTC](https://forums.unrealengine.com/t/how-tidy-multiple-line-traces/242770/1 "2021-07-27T15:01:50Z")

</div>

Was watching a Video [someone using Unity](https://youtu.be/SVazwHyfB7g?t=1215) where in a for loop has multiple rays cast including the hit results and there is visually a huge difference when using Blueprints. Wondering if I can tidy things up? …

 ![Screenshot 2021-07-27 at 15.44.42](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/5/f51aa6ced5fdf4a5a7065bc9c4500da8ca110a2e.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 27, 2021, 3:11pm UTC](https://forums.unrealengine.com/t/how-tidy-multiple-line-traces/242770/2 "2021-07-27T15:11:42Z")

</div>

Trace goes into a function, expose attributes, feed it data in a loop.

---

<div class="post-metadata">

**Author:** ![espr3ss0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@espr3ss0](https://forums.unrealengine.com/u/espr3ss0)\
**Post date:** [July 27, 2021, 3:39pm UTC](https://forums.unrealengine.com/t/how-tidy-multiple-line-traces/242770/3 "2021-07-27T15:39:31Z")

</div>

That’s a great idea thanks. Not sure why I find it weird coming from normal programming to UE, I really like the VS but sometimes wonder if it’s any easier.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 27, 2021, 4:28pm UTC](https://forums.unrealengine.com/t/how-tidy-multiple-line-traces/242770/4 "2021-07-27T16:28:18Z")

</div>

Sadly, blueprints encourage messy scripting.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/9/f91a8d0f6eec88af2c2713a21c22a0c83d4fedda.jpeg)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/b/eb395337055ddbbbd99189528f965ef88ae1037b.jpeg)

…

---

<div class="post-metadata">

**Author:** ![JaredTherriault](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jaredtherriault/32/1194499_2.png) [@JaredTherriault](https://forums.unrealengine.com/u/JaredTherriault)\
**Post date:** [July 27, 2021, 4:33pm UTC](https://forums.unrealengine.com/t/how-tidy-multiple-line-traces/242770/5 "2021-07-27T16:33:32Z")

</div>

Blueprints don’t have to look like that. At all. That is not a product of the solution, but a shortcoming of the scripter.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 27, 2021, 5:10pm UTC](https://forums.unrealengine.com/t/how-tidy-multiple-line-traces/242770/6 "2021-07-27T17:10:50Z")

</div>

> That is not a product of the solution, but a shortcoming of the scripter.

That is a sign that someone needs urgent professional help! 😉 True nightmare fuel.

I’ve got all alignments shortcuts key bound, wouldn’t be able to sleep at night if my wires were crossing 😑

[![Image from Gyazo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/6/5c67aadfbb1c6c4716caa683aaaf1a9e64ce393a.gif)](https://gyazo.com/b05bc48fe84693c727454ca8b265f976)

Highly recommended! Once you get used to it, there’s no going back. Keepings things neat improves overall visibility and actually speeds things up. At least for me.

My absolute pet peeve are AH posts of rat’s nest noodled criss-crossed zigzags.

* * *

Here’s a useful tip, rather than dragging wires everywhere inside a function, you can do this instead:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/5/75309fe69289bebd47cf91503314784568e2e362.png)

Just don’t change the param name afterwards…

---

<div class="post-metadata">

**Author:** ![JaredTherriault](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jaredtherriault/32/1194499_2.png) [@JaredTherriault](https://forums.unrealengine.com/u/JaredTherriault)\
**Post date:** [July 27, 2021, 6:38pm UTC](https://forums.unrealengine.com/t/how-tidy-multiple-line-traces/242770/7 "2021-07-27T18:38:08Z")

</div>

Very useful tips everyone should know, but many sadly don’t. That said, I can easily recommend all of the blueprint-centric videos on the UE youtube channel, they go over things like this and much more.

Another quick tip: double click on any wire to add a reroute node to tidy up wires.

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [July 27, 2021, 6:50pm UTC](https://forums.unrealengine.com/t/how-tidy-multiple-line-traces/242770/8 "2021-07-27T18:50:01Z")

</div>

Function local vars ! Too hell with strung out wires.

If it takes 30 minutes to back track an old bp’s logic flow, something aint right.
