Use FindCollisionUV node.
You can use a Line Trace hit result to find the UV that was hit. But make sure to do the following:
- Under Project Settings > Engine > Physics > Optimization, enable “Support UV From Hit Results”. This enables the feature but uses more CPU to store the UV information.
- When performing the Line Trace, ensure, “Trace Complex” is checked.