How select a material element applyed on a staticmesh using a mouse click.

Hi guy,

I have a doubt. It is possible to make the viewer can click a portion of an object and the system knows what element was clicked and save the number of the element in a variable?

I’m doing a system to change material of objects, only that there are several objects that have multiple elements. I would like to let the viewer choose which part of the object he wants to change the material.

It’s possible? Thanks