I set up a simple line trace from the camera, it can hit things and successfully report the ‘Face Index’. But I’m getting nothing for UV results, no matter what it looks at. How do I get texture/UV coordinates from the line trace?
If you look at the “Find Collision UV” nodes tooltip, it actually tells the answer. You need to go to your project settings and change “Support UV From Hit Results” on Engine - Physics - Default Physics Settings - Optimization.
Turns out you have to restart the editor after hitting the checkbox in physics settings. That’s not the case for many settings so it didn’t occur to me.
Every time you change a setting that requires editor restart, editor will prompt you about it. There’s a small prompt in the bottom that says that changes need editor restart and ask if you want to restart now yes/no. You must have missed the prompt or just selected no by accident.