# Line Trace for Specific Object

**URL:** <https://forums.unrealengine.com/t/line-trace-for-specific-object/70670>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine\
**Created:** [August 4, 2016, 5:35pm UTC](https://forums.unrealengine.com/t/line-trace-for-specific-object/70670 "2016-08-04T17:35:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DMHokie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DMHokie](https://forums.unrealengine.com/u/DMHokie)\
**Post date:** [August 4, 2016, 5:35pm UTC](https://forums.unrealengine.com/t/line-trace-for-specific-object/70670/1 "2016-08-04T17:35:53Z")

</div>

I want to use a line trace to click on an object and pull up a widget to set that object’s materials. So if I click a wall, it will open a widget with wall materials. If I click furniture, it will pull up furniture materials. Is there a way to activate a widget from a line trace for specific objects like that?

---

<div class="post-metadata">

**Author:** ![DMHokie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DMHokie](https://forums.unrealengine.com/u/DMHokie)\
**Post date:** [August 4, 2016, 5:44pm UTC](https://forums.unrealengine.com/t/line-trace-for-specific-object/70670/2 "2016-08-04T17:44:19Z")

</div>

Never mind. I was able to achieve this by plugging an Equal to the hit actor, attach my object to that equal, and branch that to a true false.

---

<div class="post-metadata">

**Author:** ![DMHokie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DMHokie](https://forums.unrealengine.com/u/DMHokie)\
**Post date:** [August 4, 2016, 6:10pm UTC](https://forums.unrealengine.com/t/line-trace-for-specific-object/70670/3 "2016-08-04T18:10:55Z")

</div>

Ok how about this one. Is there a way to trace this similar way to trace by material (or element)? If my walls have a couple materials and I want to be able to do a trace to one of the materials?
