Get Mesh color on location at runtime

Hey there,

i hope this is the right place to ask.

Is something like this possible?

  • get the material instance of a mesh i hit with trace
  • then get the color(code) of the position where the trace hit
  • (optional) change the color of that area

The material would be very basic, just basecolor with no fancy effects.

Im experimenting with an armor concept that uses color to store information about armor values on different areas of the mesh.

Thank you.

Regards