Getting the BlueprintRenderToTarget Content Example to work with UVs

Hi, I studied the example for a while but still I can’t figure out how to make the heightmap work with other meshes than the flat plane.
A comment in the blueprint says “should be replaced by line trace UV to work on any mesh”, and that’s what I’ve been trying to do without success.

Anyone figured out how to do it?