Get the material color from a line trace

Hi guys,

I am trying to figure out a way to get the color off of a material from a line trace.

For example: If I have a box and the Material on the box is made up of blue, purple, and yellow squares all on one texture. How do I return the color that the trace hits?

I have done some looking around and haven’t been able to find a solution yet. If you have an idea, please let me know.

Don’t think that’s easily possible in BP, but I might be wrong. Just brainstorming, you’d need to get the hit face (or directly the vertex maybe) and then check it’s rgb value. Again, don’t know if possible in BP. But what’s your goal? Maybe you could get away with adding collision boxes to each “color square” in the actor, and just check for the hit component.