Notice you should have “Trace Complex” and “Support UV From Hit Result” check-boxes turned ON both!
“Trace Complex” check box is in your Line Trace node.
“Support UV From Hit Result” you can find in: Setting>Physics>Optimization>Support UV From Hit Result.