Is it possible to get the color value from the material of any object when it is hit with a line trace?
You mean the material?
If the mesh has a vector material parameter for the color, you can.
I would personally store the color on the actor who has the mesh first.
Then when i trace i would retrieve that color variable from the actor.
So there’s no need to go too deep finding parameters from a component’s material. Which you can if you want.
sorry yes the material. I edited question to clarify