Line Trace for Specific Object

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?

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.

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?