Download

Show A 3D Model In UMG and Select Part of It by Mouse Click?

Hi Guys:
I wanna show a 3d model in umg,I use SceneCapture2DComponent and render target and a Image Component in umg,thats fine so far.

My question is:when i click on the Image Component ,how can i know which part of the 3d model was clicked.

I know how to do this in 3d world,use ‘Get Hit Result Under Cusor by Channel’ node. but through umg and render target?no clue at all.please help!

You can take local mouse coordinates from your UMG component and transform them into world coordinates, from where you will make a line trace to calculate the place of its hit on the model.